/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 8b4af0a
 * Options:   --bitfields --packed-struct --output test8648.c
 * Seed:      5615893085790629707
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static uint64_t g_17[1] = {0UL};
static int8_t g_61 = (-6L);
static int32_t g_67 = 0L;
static const int32_t *g_72 = &g_67;
static const int32_t **g_71[3][7][5] = {{{(void*)0,&g_72,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,&g_72,(void*)0}},{{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,(void*)0,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72}},{{(void*)0,(void*)0,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,(void*)0,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,(void*)0,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72,&g_72},{(void*)0,(void*)0,(void*)0,&g_72,(void*)0}}};
static int32_t **g_75 = (void*)0;
static uint64_t g_115 = 6UL;
static int32_t *g_118 = &g_67;
static uint8_t g_120[5][8][6] = {{{1UL,0xF0L,0x8BL,0xF0L,1UL,0x8AL},{0x52L,246UL,1UL,253UL,254UL,4UL},{253UL,254UL,4UL,246UL,0xF0L,4UL},{1UL,0xD1L,1UL,0xA4L,246UL,0x8AL},{0xF0L,252UL,0x8BL,1UL,254UL,1UL},{0xC7L,255UL,0x8BL,246UL,0xD1L,0x8AL},{0xFDL,0xF0L,1UL,0x52L,252UL,4UL},{0x52L,252UL,4UL,255UL,255UL,4UL}},{{0xC7L,0xC7L,1UL,254UL,0xF0L,0x8AL},{246UL,0xC1L,0x8BL,0xA4L,252UL,1UL},{0xD1L,246UL,0x8BL,255UL,0xC7L,0x8AL},{253UL,255UL,1UL,0xFDL,0xC1L,4UL},{0xFDL,0xC1L,4UL,0xF0L,246UL,4UL},{0xD1L,1UL,1UL,1UL,255UL,0x8AL},{255UL,254UL,0x8BL,254UL,0xC1L,1UL},{1UL,0xF0L,0x8BL,0xF0L,1UL,0x8AL}},{{0x52L,246UL,1UL,253UL,254UL,4UL},{253UL,254UL,4UL,246UL,0xF0L,4UL},{1UL,0xD1L,1UL,0xA4L,246UL,0x8AL},{0xF0L,252UL,0x8BL,1UL,254UL,1UL},{0xC7L,255UL,0x8BL,246UL,0xD1L,0x8AL},{0xFDL,0xF0L,1UL,0x52L,252UL,1UL},{0UL,0x7FL,1UL,0xB0L,0xB0L,1UL},{249UL,249UL,253UL,0x04L,0x55L,255UL}},{{0x7BL,0x7DL,254UL,0x38L,0x7FL,253UL},{0x58L,0x7BL,254UL,0xB0L,249UL,255UL},{0xF9L,0xB0L,253UL,252UL,0x7DL,1UL},{252UL,0x7DL,1UL,0x55L,0x7BL,1UL},{0x58L,0x82L,253UL,0x26L,0xB0L,255UL},{0xB0L,251UL,254UL,0x04L,0x7DL,253UL},{0x82L,0x55L,254UL,0x55L,0x82L,255UL},{0UL,0x7BL,253UL,0xF9L,251UL,1UL}},{{0xF9L,251UL,1UL,0x7BL,0x55L,1UL},{0x82L,0x58L,253UL,0x38L,0x7BL,255UL},{0x55L,0x7FL,254UL,0x26L,251UL,253UL},{249UL,0xB0L,254UL,0x7BL,0x58L,255UL},{252UL,0x55L,253UL,0UL,0x7FL,1UL},{0UL,0x7FL,1UL,0xB0L,0xB0L,1UL},{249UL,249UL,253UL,0x04L,0x55L,255UL},{0x7BL,0x7DL,254UL,0x38L,0x7FL,253UL}}};
static int8_t g_137 = (-1L);
static uint32_t g_146[7][4][1] = {{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}},{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}},{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}},{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}},{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}},{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}},{{4UL},{0xE5926A32L},{4UL},{0xE5926A32L}}};
static uint16_t g_152 = 0x94D1L;
static int32_t g_173 = 1L;
static volatile int64_t g_175 = 0L;/* VOLATILE GLOBAL g_175 */
static uint8_t g_176 = 0xE6L;
static uint32_t g_177 = 0x4D1E50D5L;
static int8_t *g_197 = &g_61;
static uint64_t g_204 = 0x9652D5C02B8945F2LL;
static int32_t g_207 = 0x42512234L;
static uint64_t g_209 = 0x99D88FCDEF65FC75LL;
static int32_t ****g_228 = (void*)0;
static int32_t ***** volatile g_227[4] = {&g_228,&g_228,&g_228,&g_228};
static volatile uint16_t g_260[2] = {6UL,6UL};
static uint8_t g_353[6] = {0x6EL,7UL,7UL,0x6EL,7UL,7UL};
static uint64_t *g_383 = &g_115;
static int64_t *g_390 = (void*)0;
static int64_t * const  volatile * volatile g_389[9] = {(void*)0,&g_390,&g_390,(void*)0,&g_390,&g_390,(void*)0,&g_390,&g_390};
static uint32_t *g_450 = &g_146[1][1][0];
static int16_t g_452[2] = {0x8F39L,0x8F39L};
static int16_t g_454 = (-1L);
static int32_t ** volatile g_506 = &g_118;/* VOLATILE GLOBAL g_506 */
static int64_t g_509[9][5][1] = {{{0L},{8L},{(-1L)},{8L},{(-1L)}},{{8L},{0L},{(-1L)},{0L},{(-1L)}},{{0L},{8L},{(-1L)},{8L},{(-1L)}},{{8L},{0L},{(-1L)},{0L},{(-1L)}},{{0L},{8L},{(-1L)},{8L},{(-1L)}},{{8L},{0L},{(-1L)},{0L},{(-1L)}},{{0xA02B0CB3C9EB313FLL},{0x498F6796B80936B5LL},{0L},{8L},{0L}},{{0x498F6796B80936B5LL},{0xA02B0CB3C9EB313FLL},{8L},{0L},{8L}},{{0xA02B0CB3C9EB313FLL},{0x498F6796B80936B5LL},{0L},{8L},{0L}}};
static uint32_t g_534 = 0UL;
static uint16_t g_538 = 0x4079L;
static uint32_t g_542 = 0xADAFBDADL;
static uint16_t g_545 = 0UL;
static const volatile int16_t *g_560 = (void*)0;
static const volatile int16_t * volatile *g_559 = &g_560;
static const uint32_t g_664 = 0x94D60AFBL;
static volatile uint32_t g_741[2] = {0UL,0UL};
static uint32_t ***g_767 = (void*)0;
static uint32_t ****g_766 = &g_767;
static uint32_t ***** volatile g_765 = &g_766;/* VOLATILE GLOBAL g_765 */
static volatile int64_t ** volatile *g_774 = (void*)0;
static const int32_t ***g_816 = (void*)0;
static const int32_t ****g_815 = &g_816;
static uint64_t g_841 = 18446744073709551615UL;
static int32_t *****g_917 = &g_228;
static volatile int16_t g_969 = 0xED21L;/* VOLATILE GLOBAL g_969 */
static volatile int16_t *g_968 = &g_969;
static volatile int16_t * volatile *g_967 = &g_968;
static volatile int16_t * volatile ** volatile g_966 = &g_967;/* VOLATILE GLOBAL g_966 */
static volatile int16_t * volatile ** volatile * volatile g_965[10] = {&g_966,&g_966,&g_966,&g_966,&g_966,&g_966,&g_966,&g_966,&g_966,&g_966};
static int32_t g_987[10] = {(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L)};


/* --- FORWARD DECLARATIONS --- */
static int16_t  func_1(void);
static int16_t  func_3(uint64_t  p_4, uint8_t  p_5, uint16_t  p_6, uint16_t  p_7);
static uint64_t  func_10(int64_t  p_11, uint8_t  p_12, int32_t  p_13, uint32_t  p_14, int32_t  p_15);
static int64_t  func_33(int16_t  p_34, uint32_t  p_35, int32_t  p_36, uint32_t  p_37, int32_t  p_38);
static uint16_t  func_41(int32_t  p_42, int32_t  p_43, int8_t  p_44, uint32_t  p_45);
static int16_t  func_55(int32_t  p_56, uint16_t  p_57, int8_t  p_58);
static int32_t ** func_68(const int32_t ** p_69, int64_t  p_70);
static const int32_t ** func_83(uint32_t  p_84, int32_t *** p_85, int16_t  p_86, const int16_t  p_87, uint8_t  p_88);
static int16_t  func_95(uint32_t  p_96);
static uint32_t  func_103(uint32_t  p_104, int8_t  p_105);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_17 g_71 g_67 g_75 g_61 g_115 g_120 g_137 g_152 g_146 g_173 g_176 g_175 g_204 g_207 g_209 g_260 g_72 g_353 g_383 g_454 g_506 g_177 g_534 g_559 g_664 g_538 g_741 g_765 g_774 g_509 g_815 g_841 g_545 g_766 g_767 g_965 g_987
 * writes: g_61 g_115 g_118 g_120 g_67 g_146 g_152 g_173 g_175 g_137 g_176 g_177 g_197 g_204 g_207 g_209 g_228 g_353 g_383 g_389 g_450 g_452 g_454 g_509 g_534 g_538 g_542 g_545 g_559 g_17 g_741 g_766 g_841 g_917 g_987
 */
static int16_t  func_1(void)
{ /* block id: 0 */
    uint64_t l_16 = 0x8358BD4DFBD6C3F0LL;
    uint8_t l_32 = 5UL;
    int32_t *l_59 = (void*)0;
    int32_t *l_60[2];
    int32_t l_62 = 2L;
    uint64_t *l_208 = &g_209;
    int32_t l_210 = 0xF7C1FE83L;
    int8_t l_218 = 0x22L;
    int64_t *l_508 = &g_509[3][2][0];
    uint32_t l_988[10][6][4] = {{{0UL,0xB4C11250L,0UL,0UL},{18446744073709551607UL,6UL,18446744073709551608UL,0UL},{0xBB131D03L,6UL,7UL,0UL},{0xC8CEEBBEL,0xB4C11250L,0xB4C11250L,0xC8CEEBBEL},{18446744073709551607UL,9UL,0xB4C11250L,0UL},{0xC8CEEBBEL,1UL,7UL,0xBB131D03L}},{{0xBB131D03L,0xB4C11250L,18446744073709551608UL,0xBB131D03L},{18446744073709551607UL,1UL,0UL,0UL},{0UL,9UL,7UL,0xC8CEEBBEL},{0UL,0xB4C11250L,0UL,0UL},{18446744073709551607UL,6UL,18446744073709551608UL,0UL},{0xBB131D03L,6UL,7UL,0UL}},{{0xC8CEEBBEL,0xB4C11250L,0xB4C11250L,0xC8CEEBBEL},{18446744073709551607UL,9UL,0xB4C11250L,0UL},{0xC8CEEBBEL,1UL,7UL,0xBB131D03L},{0xBB131D03L,0xB4C11250L,18446744073709551608UL,0xBB131D03L},{18446744073709551607UL,1UL,0UL,0UL},{0UL,9UL,7UL,0xC8CEEBBEL}},{{0UL,0xB4C11250L,0UL,0UL},{18446744073709551607UL,6UL,18446744073709551608UL,0UL},{0xBB131D03L,6UL,7UL,0UL},{0xC8CEEBBEL,0xB4C11250L,0xB4C11250L,0xC8CEEBBEL},{18446744073709551607UL,9UL,0xB4C11250L,0UL},{0xC8CEEBBEL,1UL,7UL,0xBB131D03L}},{{0xBB131D03L,0xB4C11250L,18446744073709551608UL,0xBB131D03L},{18446744073709551607UL,1UL,0UL,0UL},{0UL,9UL,7UL,0xC8CEEBBEL},{0UL,0xB4C11250L,0UL,0UL},{18446744073709551607UL,6UL,18446744073709551608UL,0UL},{0xBB131D03L,6UL,7UL,0UL}},{{0xC8CEEBBEL,0xB4C11250L,0xB4C11250L,0xC8CEEBBEL},{18446744073709551607UL,9UL,0xB4C11250L,0UL},{0xC8CEEBBEL,1UL,7UL,0xBB131D03L},{0xBB131D03L,0xB4C11250L,18446744073709551608UL,0xBB131D03L},{18446744073709551607UL,1UL,0UL,0UL},{0UL,9UL,7UL,0xC8CEEBBEL}},{{0UL,0xB4C11250L,0UL,0UL},{18446744073709551607UL,6UL,18446744073709551608UL,0UL},{0xBB131D03L,6UL,9UL,18446744073709551607UL},{8UL,7UL,7UL,8UL},{18446744073709551615UL,18446744073709551608UL,7UL,0x9539270EL},{8UL,0UL,9UL,0UL}},{{0UL,7UL,18446744073709551615UL,0UL},{18446744073709551615UL,0UL,0UL,0x9539270EL},{18446744073709551607UL,18446744073709551608UL,9UL,8UL},{18446744073709551607UL,7UL,0UL,18446744073709551607UL},{18446744073709551615UL,0xB4C11250L,18446744073709551615UL,0x9539270EL},{0UL,0xB4C11250L,9UL,18446744073709551607UL}},{{8UL,7UL,7UL,8UL},{18446744073709551615UL,18446744073709551608UL,7UL,0x9539270EL},{8UL,0UL,9UL,0UL},{0UL,7UL,18446744073709551615UL,0UL},{18446744073709551615UL,0UL,0UL,0x9539270EL},{18446744073709551607UL,18446744073709551608UL,9UL,8UL}},{{18446744073709551607UL,7UL,0UL,18446744073709551607UL},{18446744073709551615UL,0xB4C11250L,18446744073709551615UL,0x9539270EL},{0UL,0xB4C11250L,9UL,18446744073709551607UL},{8UL,7UL,7UL,8UL},{18446744073709551615UL,18446744073709551608UL,7UL,0x9539270EL},{8UL,0UL,9UL,0UL}}};
    int i, j, k;
    for (i = 0; i < 2; i++)
        l_60[i] = (void*)0;
    g_987[1] &= (safe_unary_minus_func_int16_t_s(func_3((safe_div_func_uint64_t_u_u(func_10(l_16, g_17[0], (safe_add_func_uint32_t_u_u((((safe_add_func_int16_t_s_s((safe_sub_func_int64_t_s_s(((*l_508) = (((safe_lshift_func_uint8_t_u_u(l_16, 0)) | (safe_mod_func_uint32_t_u_u((safe_rshift_func_uint64_t_u_u((safe_mul_func_int64_t_s_s(l_32, func_33(((safe_mod_func_uint16_t_u_u(func_41((0UL != (safe_sub_func_uint32_t_u_u(l_32, ((safe_div_func_uint64_t_u_u((~1UL), ((*l_208) |= (safe_sub_func_int32_t_s_s(((safe_rshift_func_int32_t_s_u(g_17[0], ((func_55((g_61 = (l_16 != l_16)), g_17[0], l_62) < g_17[0]) && g_173))) , 0x0130CC3CL), g_17[0]))))) == g_17[0])))), l_210, g_17[0], g_17[0]), 0x5914L)) < 0x35L), g_17[0], g_17[0], g_17[0], l_218))), g_17[0])), 0xBEEFADD9L))) != g_17[0])), 0x890B1CABDCCE7D3FLL)), g_17[0])) && 0x3230L) != 1L), g_17[0])), g_17[0], g_17[0]), g_664)), g_664, g_664, g_664)));
    return l_988[2][0][3];
}


/* ------------------------------------------ */
/* 
 * reads : g_534 g_260 g_383 g_173 g_538 g_204 g_741 g_207 g_120 g_67 g_176 g_209 g_115 g_765 g_353 g_774 g_509 g_454 g_146 g_815 g_841 g_72 g_137 g_75 g_664 g_545 g_506 g_766 g_767 g_177 g_965
 * writes: g_534 g_209 g_115 g_545 g_176 g_204 g_207 g_741 g_454 g_766 g_67 g_118 g_841 g_61 g_120 g_917
 */
static int16_t  func_3(uint64_t  p_4, uint8_t  p_5, uint16_t  p_6, uint16_t  p_7)
{ /* block id: 321 */
    int16_t *l_702 = &g_454;
    int16_t * const *l_701 = &l_702;
    int16_t * const **l_700[6][4][8] = {{{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701}},{{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701}},{{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701}},{{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701}},{{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701}},{{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701},{&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701,&l_701}}};
    int64_t * const *l_713 = &g_390;
    int64_t l_720 = (-1L);
    int32_t ***l_800 = &g_75;
    int32_t ****l_799 = &l_800;
    int32_t l_802 = 2L;
    const int32_t ****l_819 = &g_816;
    uint32_t l_827 = 4294967286UL;
    uint16_t l_840 = 0x5B15L;
    uint32_t **** const *l_943 = &g_766;
    int32_t l_951 = 0x5CCF67F4L;
    uint64_t l_976 = 18446744073709551613UL;
    uint32_t *l_985 = &g_542;
    uint32_t **l_984 = &l_985;
    int32_t *l_986 = &g_67;
    int i, j, k;
    for (g_534 = 0; (g_534 <= 1); g_534 += 1)
    { /* block id: 324 */
        uint16_t *l_690 = (void*)0;
        uint16_t **l_689 = &l_690;
        int16_t * const ***l_703 = &l_700[0][2][2];
        int32_t l_712[4];
        int32_t l_727 = 0x8054A2E3L;
        int64_t **l_773 = &g_390;
        int64_t ** const *l_772 = &l_773;
        const int32_t l_803 = (-1L);
        int32_t ****l_814 = &l_800;
        int8_t l_934 = (-8L);
        int8_t l_940 = 0x3CL;
        int i;
        for (i = 0; i < 4; i++)
            l_712[i] = 1L;
        if ((((*l_689) = &g_545) != ((!((safe_mod_func_uint32_t_u_u(((((safe_add_func_int16_t_s_s(((safe_add_func_uint32_t_u_u(0UL, ((safe_sub_func_int16_t_s_s((((*l_703) = l_700[0][2][2]) == &g_559), (safe_sub_func_uint64_t_u_u(g_260[g_534], p_7)))) , p_4))) , (safe_add_func_int64_t_s_s((0x681AB1B8L == (~((*g_383) = (safe_unary_minus_func_uint64_t_u(((safe_rshift_func_int16_t_s_u(((p_6 ^ g_260[g_534]) && 0x9A11L), 13)) ^ p_4)))))), l_712[1]))), 65535UL)) , l_713) == l_713) < 0x85225327L), p_7)) < l_712[1])) , (void*)0)))
        { /* block id: 328 */
            uint64_t l_732 = 0x0CBA8AA056784B70LL;
            int16_t l_733[9] = {0x7A17L,4L,4L,0x7A17L,4L,4L,0x7A17L,4L,4L};
            int16_t **l_760 = &l_702;
            int16_t ***l_759 = &l_760;
            int16_t *** const *l_758 = &l_759;
            int32_t **l_778 = (void*)0;
            int i;
            if (p_5)
                break;
            if ((((((((safe_mul_func_uint8_t_u_u((safe_rshift_func_int64_t_s_s(((safe_rshift_func_uint32_t_u_u((l_712[1] |= p_7), 19)) ^ (l_720 >= g_173)), (safe_mod_func_uint32_t_u_u(((safe_add_func_uint16_t_u_u((p_6 = ((*l_690) = (((((safe_div_func_uint64_t_u_u(p_7, l_727)) , p_4) , (void*)0) == (void*)0) , ((safe_rshift_func_int32_t_s_u((l_732 |= ((safe_lshift_func_int8_t_s_u(g_260[g_534], 3)) >= (-9L))), 30)) != 0x7A4DDB26L)))), 0L)) | 1UL), l_727)))), 0x12L)) , 0x1709257FL) , 0x8968L) & 1L) ^ l_733[3]) , g_538) ^ p_4))
            { /* block id: 334 */
                int32_t *l_735 = &g_67;
                uint32_t **l_737 = &g_450;
                uint32_t *** const l_736 = &l_737;
                const uint16_t l_761 = 0x3C40L;
                for (g_176 = 0; (g_176 <= 1); g_176 += 1)
                { /* block id: 337 */
                    int32_t *l_734 = &l_712[1];
                    uint32_t ****l_738 = (void*)0;
                    uint32_t ***l_740 = (void*)0;
                    uint32_t ****l_739 = &l_740;
                    l_735 = l_734;
                    (*l_739) = l_736;
                }
                for (g_204 = 0; (g_204 <= 3); g_204 += 1)
                { /* block id: 343 */
                    uint32_t ***l_764 = &l_737;
                    uint32_t ****l_763 = &l_764;
                    uint32_t *****l_762 = &l_763;
                    int i;
                    l_712[g_204] = p_7;
                    for (g_207 = 4; (g_207 >= 0); g_207 -= 1)
                    { /* block id: 347 */
                        int i, j, k;
                        g_741[1]++;
                        return g_120[g_207][(g_204 + 2)][(g_207 + 1)];
                    }
                    (*g_765) = ((*l_762) = (((safe_add_func_uint16_t_u_u(p_4, g_67)) | ((safe_mul_func_int16_t_s_s((p_5 & (safe_sub_func_int16_t_s_s(((*l_702) = g_176), (safe_lshift_func_uint64_t_u_u(((((((safe_lshift_func_int8_t_s_u(p_7, (safe_mul_func_uint64_t_u_u((p_5 , (safe_rshift_func_uint64_t_u_u(((void*)0 == l_758), 29))), ((*g_383) ^= 4UL))))) , 4294967291UL) != 9UL) , 0xF92AL) <= l_720) && l_761), l_733[0]))))), 0x2A1CL)) != g_260[g_534])) , (void*)0));
                }
                return p_7;
            }
            else
            { /* block id: 357 */
                int32_t **l_777 = &g_118;
                for (l_720 = 5; (l_720 >= 1); l_720 -= 1)
                { /* block id: 360 */
                    int i;
                    if (g_353[l_720])
                    { /* block id: 361 */
                        int32_t *l_783 = &g_67;
                        int i;
                        (*l_783) |= (safe_sub_func_int16_t_s_s(0x0B51L, ((((safe_mul_func_uint64_t_u_u(((0x92L ^ (g_260[g_534] < (((l_772 == g_774) , (safe_mod_func_int16_t_s_s(((p_5 | (l_777 != l_778)) | (safe_rshift_func_int16_t_s_u((safe_sub_func_int16_t_s_s(0x6172L, p_5)), p_4))), g_204))) , 0xFAA24F7AL))) <= 1UL), (*g_383))) , l_712[1]) , l_720) <= 0L)));
                    }
                    else
                    { /* block id: 363 */
                        int32_t *l_784 = (void*)0;
                        if (p_5)
                            break;
                        (*l_777) = l_784;
                    }
                }
            }
        }
        else
        { /* block id: 369 */
            int32_t l_789 = 0xEABAD93BL;
            uint8_t *l_797[4][3][10] = {{{&g_120[3][2][4],&g_176,&g_176,(void*)0,&g_176,(void*)0,&g_176,&g_176,&g_120[3][2][4],&g_353[3]},{(void*)0,(void*)0,&g_353[3],&g_120[3][2][4],&g_120[1][4][3],&g_120[2][1][1],&g_176,&g_120[2][1][1],&g_120[1][4][3],&g_120[3][2][4]},{&g_353[1],&g_176,&g_353[1],&g_120[3][2][4],&g_176,&g_353[3],&g_353[3],&g_353[3],&g_120[3][2][4],&g_353[3]}},{{&g_353[1],&g_120[2][1][1],&g_120[3][2][4],(void*)0,&g_120[3][2][4],&g_120[2][1][1],&g_353[1],&g_353[3],(void*)0,&g_176},{(void*)0,&g_353[3],&g_353[1],&g_120[2][1][1],&g_120[3][2][4],(void*)0,&g_120[3][2][4],&g_120[2][1][1],&g_353[1],&g_353[3]},{&g_120[3][2][4],&g_353[3],&g_353[3],&g_353[3],&g_176,&g_120[3][2][4],&g_353[1],&g_176,&g_353[1],&g_120[3][2][4]}},{{&g_120[1][4][3],&g_120[2][1][1],&g_176,&g_120[2][1][1],&g_120[1][4][3],&g_120[3][2][4],&g_353[3],(void*)0,(void*)0,&g_353[3]},{&g_120[3][2][4],&g_176,&g_176,(void*)0,&g_176,(void*)0,&g_176,&g_176,&g_120[3][2][4],&g_353[3]},{(void*)0,(void*)0,&g_353[3],&g_120[3][2][4],&g_120[1][4][3],&g_120[2][1][1],&g_176,&g_120[2][1][1],&g_120[1][4][3],&g_120[3][2][4]}},{{&g_353[1],&g_176,&g_353[1],&g_120[3][2][4],&g_176,&g_176,&g_176,(void*)0,&g_176,(void*)0},{&g_120[1][4][3],&g_353[3],&g_176,&g_120[3][2][4],&g_176,&g_353[3],&g_120[1][4][3],(void*)0,&g_353[1],(void*)0},{&g_353[1],(void*)0,&g_120[1][4][3],&g_353[3],&g_176,&g_120[3][2][4],&g_176,&g_353[3],&g_120[1][4][3],(void*)0}}};
            int32_t *l_801[9][5] = {{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0},{&g_207,(void*)0,&g_207,&g_207,(void*)0}};
            int i, j, k;
            l_802 = (safe_lshift_func_uint32_t_u_u((p_5 & ((p_4 < p_7) == ((((((g_260[g_534] && g_509[6][1][0]) | (safe_lshift_func_int64_t_s_u((l_789 && (safe_add_func_uint8_t_u_u((g_176 = ((safe_add_func_int64_t_s_s((((safe_add_func_uint64_t_u_u((safe_unary_minus_func_uint8_t_u((l_712[3] = (l_789 , 0x70L)))), (safe_unary_minus_func_int64_t_s(0xB27CA5FD384EE7BFLL)))) > g_120[1][0][0]) >= 0x24L), 0x09D0EEF87D520860LL)) ^ 0xFA6EL)), g_454))), (*g_383)))) , (void*)0) == l_799) == g_509[3][2][0]) >= 0xE073779E0B56FC50LL))), 18));
        }
        if (l_803)
        { /* block id: 374 */
            return p_7;
        }
        else
        { /* block id: 376 */
            int8_t l_808[5][2] = {{1L,1L},{1L,1L},{1L,1L},{1L,1L},{1L,1L}};
            int32_t l_811 = 6L;
            const int32_t *****l_817 = (void*)0;
            const int32_t *****l_818[8] = {&g_815,&g_815,&g_815,&g_815,&g_815,&g_815,&g_815,&g_815};
            int32_t *l_825 = &g_207;
            uint64_t l_839 = 0x9EB753F1FFB3160BLL;
            int32_t l_859 = 0L;
            const uint32_t l_901 = 0x937B86FEL;
            int64_t l_945 = 2L;
            int i, j;
            (*l_825) = (safe_sub_func_uint16_t_u_u((safe_lshift_func_uint32_t_u_s((((l_808[3][0] > ((g_146[5][3][0] > g_120[4][5][2]) , (safe_mul_func_uint16_t_u_u(l_811, l_808[3][0])))) == (safe_lshift_func_uint16_t_u_s((l_814 == (l_819 = g_815)), 11))) || 0x5C15L), 11)), (safe_mul_func_uint32_t_u_u(((safe_mod_func_uint32_t_u_u((((+(((((*g_383) != p_7) , 0x1ED07382105E75DCLL) < p_5) >= p_7)) || p_4) , p_7), p_4)) & p_5), 0xED50B1A5L))));
            for (l_720 = 0; (l_720 <= 2); l_720 += 1)
            { /* block id: 381 */
                int32_t *l_826 = &g_67;
                uint64_t *l_842 = &g_841;
                int64_t l_843 = 0xC57DD3533A79E2BBLL;
                int32_t l_858 = (-1L);
                int32_t *l_902 = &g_67;
                uint16_t l_914 = 0xE6BEL;
                int i;
                if (l_712[(g_534 + 1)])
                    break;
                l_826 = &l_712[(g_534 + 1)];
                if (((l_827 == (safe_div_func_uint32_t_u_u(((*g_383) == (((((((*l_825) , p_4) > (((void*)0 == &l_713) <= ((safe_add_func_uint32_t_u_u((safe_div_func_uint64_t_u_u(((*l_842) = (safe_rshift_func_uint8_t_u_s(((safe_div_func_uint8_t_u_u((((((void*)0 == &g_545) && ((safe_unary_minus_func_uint8_t_u((g_67 && l_839))) < l_803)) , p_4) != 0xE0ABC0A2L), l_840)) | g_841), (*l_826)))), (*g_383))), (-1L))) ^ (*g_383)))) | p_5) | l_843) | 0x07A29D98L) && (*l_826))), p_6))) ^ (*g_72)))
                { /* block id: 385 */
                    int32_t *l_857[8] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                    int i;
                    if (p_6)
                        break;
                    (*l_826) = ((&l_712[(g_534 + 1)] == &l_712[(g_534 + 1)]) && (safe_div_func_uint64_t_u_u((*l_825), (p_4 || (safe_mul_func_int32_t_s_s((l_858 ^= (((safe_div_func_int32_t_s_s(((safe_add_func_uint8_t_u_u((*l_825), ((p_4 != (safe_lshift_func_int8_t_s_s((((safe_mod_func_uint32_t_u_u((~(*l_825)), (g_120[2][5][2] | g_137))) , (*l_800)) != (**l_814)), p_7))) && p_4))) || (*l_826)), p_7)) ^ g_146[1][1][0]) & g_146[1][0][0])), 0xDB60E7E3L))))));
                }
                else
                { /* block id: 389 */
                    uint8_t l_862 = 0x4AL;
                    for (g_61 = 2; (g_61 >= 0); g_61 -= 1)
                    { /* block id: 392 */
                        int32_t *l_860 = &l_858;
                        int32_t *l_861[8][4] = {{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0}};
                        const uint32_t l_881[9][4][5] = {{{2UL,2UL,2UL,0UL,0UL},{0xAA2C3109L,0x6FC84C56L,0xAA2C3109L,18446744073709551607UL,18446744073709551607UL},{2UL,2UL,2UL,0UL,0UL},{0xAA2C3109L,0x6FC84C56L,0xAA2C3109L,18446744073709551607UL,18446744073709551607UL}},{{2UL,2UL,2UL,0UL,0UL},{0xAA2C3109L,0x6FC84C56L,0xAA2C3109L,18446744073709551607UL,18446744073709551607UL},{2UL,2UL,2UL,0UL,0UL},{0xAA2C3109L,0x6FC84C56L,0xAA2C3109L,18446744073709551607UL,18446744073709551607UL}},{{2UL,2UL,2UL,0UL,0UL},{0xAA2C3109L,0x6FC84C56L,0xAA2C3109L,18446744073709551607UL,18446744073709551607UL},{2UL,2UL,2UL,0UL,0UL},{0xAA2C3109L,0x6FC84C56L,0xAA2C3109L,18446744073709551607UL,18446744073709551607UL}},{{2UL,2UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L},{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L}},{{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L},{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L}},{{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L},{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L}},{{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L},{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L}},{{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L},{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L}},{{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L},{0xC32231EBL,0UL,0xC32231EBL,2UL,2UL},{2UL,18446744073709551610UL,2UL,0xAA2C3109L,0xAA2C3109L}}};
                        uint64_t l_884 = 0xD50C603FAEC8065CLL;
                        int i, j, k;
                        ++l_862;
                        (*l_825) = (safe_div_func_int64_t_s_s((0UL | (safe_add_func_uint16_t_u_u(0xD2D4L, ((*l_690) = 0xBE03L)))), (safe_add_func_int32_t_s_s(((safe_mul_func_uint32_t_u_u((safe_add_func_uint64_t_u_u((safe_mul_func_uint64_t_u_u(((safe_mod_func_int8_t_s_s(g_509[3][2][0], g_209)) && (safe_div_func_uint32_t_u_u(p_7, l_881[3][0][0]))), p_4)), (safe_mod_func_int64_t_s_s((((void*)0 == &l_842) != 0xA522L), (*l_826))))), (*l_826))) && (*l_826)), (*l_826)))));
                        (*l_825) = (0x8A5C716EL & p_6);
                        if (l_884)
                            break;
                    }
                }
                if (((0x982DB744L >= ((p_5 == (*l_826)) >= (((safe_add_func_uint64_t_u_u(((safe_mul_func_uint16_t_u_u((((*l_902) |= (safe_mod_func_uint32_t_u_u(((-3L) > p_5), (safe_mod_func_uint8_t_u_u((safe_mod_func_int32_t_s_s(((safe_sub_func_uint16_t_u_u(((**l_689) = ((g_115 && ((((&l_858 != &l_712[(g_534 + 1)]) && (safe_mod_func_uint8_t_u_u(((*l_825) || p_5), p_4))) , 0L) < 0x0E12453333B53C8BLL)) ^ p_4)), l_901)) , p_4), 0x7A3447CAL)), g_664))))) && (*l_826)), g_120[3][2][4])) >= p_6), p_5)) , 4294967287UL) != p_6))) , p_7))
                { /* block id: 402 */
                    int32_t *l_918[5];
                    int i;
                    for (i = 0; i < 5; i++)
                        l_918[i] = &l_712[3];
                    for (g_176 = 0; (g_176 <= 2); g_176 += 1)
                    { /* block id: 405 */
                        uint8_t *l_903 = &g_120[3][0][4];
                        int32_t *l_915 = &l_712[(g_534 + 1)];
                        int32_t l_916 = 0x8D0F41BAL;
                        (*g_506) = (l_918[2] = ((((((&l_799 != (g_917 = ((((*g_383) = ((++(*l_903)) & g_545)) <= ((((safe_sub_func_uint32_t_u_u(((p_4 , (((safe_mul_func_int64_t_s_s((safe_add_func_uint64_t_u_u(((((void*)0 == (**l_703)) , (void*)0) == &l_773), l_914)), (l_915 == l_915))) , l_916) > (*l_915))) > 0UL), (*g_72))) & p_4) > 0xC5E71E29DD1885BELL) == p_7)) , (void*)0))) >= 0xA9L) <= p_6) , p_7) , (*l_915)) , (void*)0));
                        (*l_826) = p_6;
                    }
                }
                else
                { /* block id: 413 */
                    int16_t l_944 = (-4L);
                    int32_t *l_946 = &l_712[1];
                    (*l_825) = (((**g_765) != ((*g_72) , (*g_766))) ^ (((safe_rshift_func_uint16_t_u_u((((****l_703) = ((safe_div_func_uint64_t_u_u((safe_sub_func_int64_t_s_s((safe_mod_func_uint32_t_u_u(((safe_mod_func_int32_t_s_s((safe_rshift_func_uint8_t_u_s(1UL, 5)), (safe_lshift_func_uint8_t_u_s((+l_934), 1)))) && ((!(safe_mul_func_uint8_t_u_u((safe_mod_func_uint16_t_u_u(l_940, 0x2866L)), (safe_div_func_uint16_t_u_u((((void*)0 != l_943) != 4294967295UL), g_841))))) >= p_6)), (*l_902))), p_5)), l_944)) != g_67)) >= (-1L)), 14)) != 4294967286UL) == l_945));
                    for (l_840 = 0; (l_840 <= 1); l_840 += 1)
                    { /* block id: 418 */
                        l_946 = &l_858;
                    }
                }
                for (g_176 = 0; (g_176 <= 1); g_176 += 1)
                { /* block id: 424 */
                    int8_t **l_947 = (void*)0;
                    int32_t l_962 = 0x23F97179L;
                    for (l_945 = 1; (l_945 >= 0); l_945 -= 1)
                    { /* block id: 427 */
                        int64_t l_958 = (-2L);
                        int8_t *l_961 = &l_808[3][0];
                        int16_t ****l_970 = (void*)0;
                        const int32_t *** const l_973[2][3][10] = {{{&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1]},{&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0]},{&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1]}},{{&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0]},{&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1]},{&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0],&g_71[0][0][1],&g_71[0][0][1],&g_71[0][3][0],&g_71[0][3][0]}}};
                        int32_t *l_983 = &l_811;
                        int i, j, k;
                        (*l_826) = ((void*)0 != l_947);
                        if (p_7)
                            continue;
                        l_712[1] = ((0x77B275AA341E42F5LL | ((safe_mul_func_uint64_t_u_u(((*l_842) = (*g_383)), ((((((~((g_741[1] , (l_951 & ((((safe_lshift_func_int8_t_s_s(((&g_197 != (void*)0) , ((*l_961) = ((safe_div_func_uint16_t_u_u(g_538, (((safe_lshift_func_int8_t_s_u(((l_958 & (safe_mul_func_uint8_t_u_u(g_146[1][0][0], 252UL))) , l_958), 2)) != p_6) | p_4))) < 5L))), p_6)) , p_6) | 4UL) >= (-3L)))) , p_4)) < p_4) <= g_177) , l_962) && l_962) , (*g_383)))) <= 0xCFF6L)) <= l_958);
                        (*l_826) = (((*g_383) = ((void*)0 != l_947)) && (safe_div_func_uint16_t_u_u((g_965[7] == l_970), (safe_mul_func_int32_t_s_s((l_973[1][1][1] != (void*)0), ((((****l_703) |= p_5) | (safe_add_func_uint64_t_u_u((((l_976 & (safe_rshift_func_uint64_t_u_s(((((*l_983) = (safe_add_func_int32_t_s_s(((*l_825) = ((g_120[3][2][4] = (safe_mul_func_int64_t_s_s(g_534, p_6))) == 0xB4L)), 0x7F58015AL))) , (*g_383)) == 0x07D42B535B7BDF74LL), p_4))) , &l_945) != (void*)0), 0x63B11B7264E23BB8LL))) , l_962))))));
                    }
                    if (p_7)
                        break;
                }
            }
        }
    }
    (*l_986) &= ((((*l_984) = (void*)0) != (void*)0) , 0x5BFAD58BL);
    return p_6;
}


/* ------------------------------------------ */
/* 
 * reads : g_209 g_177 g_152 g_260 g_383 g_115 g_534 g_72 g_67 g_146 g_559 g_353 g_120 g_17 g_137
 * writes: g_209 g_177 g_152 g_115 g_120 g_534 g_538 g_542 g_61 g_545 g_454 g_67 g_559 g_452 g_509 g_17 g_146 g_204
 */
static uint64_t  func_10(int64_t  p_11, uint8_t  p_12, int32_t  p_13, uint32_t  p_14, int32_t  p_15)
{ /* block id: 220 */
    int32_t *l_514[3][2][10] = {{{(void*)0,&g_207,&g_207,(void*)0,(void*)0,&g_207,&g_207,(void*)0,(void*)0,&g_207},{(void*)0,(void*)0,&g_207,&g_207,(void*)0,(void*)0,&g_207,&g_207,(void*)0,(void*)0}},{{(void*)0,&g_207,&g_207,(void*)0,&g_67,&g_207,&g_207,&g_67,&g_67,&g_207},{&g_67,(void*)0,&g_207,&g_207,(void*)0,&g_67,&g_207,&g_207,&g_67,&g_67}},{{(void*)0,&g_207,&g_207,(void*)0,(void*)0,&g_207,&g_207,(void*)0,(void*)0,&g_207},{(void*)0,&g_67,&g_207,&g_207,&g_67,&g_67,&g_207,&g_207,&g_67,(void*)0}}};
    const uint32_t *l_665 = (void*)0;
    int32_t *** const l_685 = &g_75;
    int32_t *** const *l_684 = &l_685;
    int64_t l_688 = 0x38EC34C39DCF0DAALL;
    int i, j, k;
    for (p_11 = (-9); (p_11 == (-6)); p_11 = safe_add_func_uint32_t_u_u(p_11, 2))
    { /* block id: 223 */
        int32_t l_512 = 0xB4C5C7AAL;
        uint64_t l_513[3];
        int i;
        for (i = 0; i < 3; i++)
            l_513[i] = 0UL;
        l_512 ^= p_14;
        return l_513[0];
    }
    for (g_209 = 0; (g_209 <= 1); g_209 += 1)
    { /* block id: 229 */
        if (p_15)
            break;
    }
    for (g_177 = 0; (g_177 <= 0); g_177 += 1)
    { /* block id: 234 */
        int32_t *l_515 = &g_67;
        int32_t l_548 = 0xBB82C3C5L;
        int32_t *l_557 = &l_548;
        int16_t *l_567 = &g_452[0];
        int16_t **l_566 = &l_567;
        int32_t *l_602 = &l_548;
        uint8_t l_604 = 0xEEL;
        uint64_t l_630 = 0x9D3FEB64B9C2C9F8LL;
        int32_t ***l_687[1][10] = {{&g_75,&g_75,&g_75,&g_75,&g_75,&g_75,&g_75,&g_75,&g_75,&g_75}};
        int32_t ****l_686 = &l_687[0][3];
        int i, j;
        for (g_152 = 0; (g_152 <= 1); g_152 += 1)
        { /* block id: 237 */
            int32_t **l_516 = &l_514[1][0][3];
            int32_t l_532 = (-1L);
            uint8_t *l_533 = &g_120[2][0][4];
            uint16_t *l_537 = &g_538;
            uint32_t *l_541[5];
            int8_t *l_543 = &g_61;
            uint16_t *l_544 = &g_545;
            int32_t l_549 = (-1L);
            int32_t l_603 = 1L;
            uint64_t **l_647 = &g_383;
            int i;
            for (i = 0; i < 5; i++)
                l_541[i] = &g_542;
            l_515 = l_514[2][1][7];
            (*l_516) = (void*)0;
            if ((safe_rshift_func_uint8_t_u_u((safe_sub_func_int8_t_s_s((safe_unary_minus_func_int32_t_s((g_260[g_152] >= ((((*g_383)++) , ((*l_544) = (safe_add_func_int8_t_s_s(0xAFL, (safe_mul_func_int64_t_s_s((((safe_add_func_int16_t_s_s((((safe_sub_func_uint8_t_u_u(((*l_533) = l_532), ((*l_543) = ((((*l_537) = (++g_534)) <= ((safe_sub_func_int64_t_s_s(((g_542 = (((p_12 && g_152) && p_14) & (g_152 || ((p_13 == (l_514[2][1][7] == (void*)0)) || p_11)))) , 0x14B838E247480E45LL), 9UL)) < p_15)) , 6L)))) <= p_14) < 18446744073709551615UL), 0x9EF1L)) , 0x973C6C6BL) & (*g_72)), p_15)))))) , 0xB64C8F81L)))), p_12)), 3)))
            { /* block id: 247 */
                int64_t l_546 = 1L;
                int32_t l_547[4] = {0L,0L,0L,0L};
                int i;
                if ((*g_72))
                    break;
                for (g_454 = 0; (g_454 <= 0); g_454 += 1)
                { /* block id: 251 */
                    uint64_t l_550 = 18446744073709551606UL;
                    --l_550;
                }
            }
            else
            { /* block id: 254 */
                uint64_t l_553 = 8UL;
                --l_553;
            }
            if (p_13)
                continue;
            for (g_67 = 0; (g_67 >= 0); g_67 -= 1)
            { /* block id: 260 */
                int32_t *l_558 = &l_549;
                int32_t l_581 = 1L;
                uint64_t **l_646[9] = {&g_383,&g_383,&g_383,&g_383,&g_383,&g_383,&g_383,&g_383,&g_383};
                uint64_t ***l_645 = &l_646[6];
                int i, j, k;
                for (p_15 = 0; (p_15 >= 0); p_15 -= 1)
                { /* block id: 263 */
                    uint16_t l_589 = 0xA167L;
                    int64_t *l_590 = &g_509[3][2][0];
                    uint64_t *l_600 = &g_17[0];
                    uint8_t l_609 = 1UL;
                    uint8_t l_629 = 246UL;
                    for (g_545 = 0; (g_545 <= 0); g_545 += 1)
                    { /* block id: 266 */
                        int32_t l_556 = 0x40E072FCL;
                        const volatile int16_t * volatile **l_561[9] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                        int64_t *l_579 = (void*)0;
                        int64_t *l_580[8][10] = {{&g_509[3][2][0],&g_509[3][3][0],&g_509[7][1][0],&g_509[3][2][0],&g_509[3][3][0],&g_509[3][2][0],&g_509[5][1][0],&g_509[7][1][0],&g_509[7][1][0],&g_509[5][1][0]},{&g_509[3][2][0],&g_509[5][1][0],&g_509[7][1][0],&g_509[7][1][0],&g_509[5][1][0],&g_509[3][2][0],&g_509[3][3][0],&g_509[3][2][0],&g_509[7][1][0],&g_509[3][3][0]},{&g_509[3][2][0],&g_509[5][1][0],&g_509[8][1][0],&g_509[3][2][0],&g_509[5][1][0],&g_509[5][1][0],&g_509[5][1][0],&g_509[3][2][0],&g_509[8][1][0],&g_509[5][1][0]},{&g_509[3][2][0],&g_509[3][3][0],&g_509[7][1][0],&g_509[3][2][0],&g_509[3][3][0],&g_509[3][2][0],&g_509[5][1][0],&g_509[7][1][0],&g_509[7][1][0],&g_509[5][1][0]},{&g_509[3][2][0],&g_509[5][1][0],&g_509[7][1][0],&g_509[7][1][0],&g_509[5][1][0],&g_509[3][2][0],&g_509[3][3][0],&g_509[3][2][0],&g_509[7][1][0],&g_509[3][3][0]},{&g_509[3][2][0],&g_509[5][1][0],&g_509[8][1][0],&g_509[3][2][0],&g_509[5][1][0],&g_509[5][1][0],&g_509[5][1][0],&g_509[3][2][0],&g_509[8][1][0],&g_509[5][1][0]},{&g_509[3][2][0],&g_509[3][3][0],&g_509[7][1][0],&g_509[3][2][0],&g_509[3][3][0],&g_509[3][2][0],&g_509[5][1][0],&g_509[7][1][0],&g_509[7][1][0],&g_509[5][1][0]},{&g_509[3][2][0],&g_509[5][1][0],&g_509[7][1][0],&g_509[7][1][0],&g_509[5][1][0],&g_509[3][2][0],&g_509[3][3][0],&g_509[3][2][0],&g_509[7][1][0],&g_509[3][3][0]}};
                        int i, j, k;
                        l_556 ^= g_146[(g_67 + 5)][g_177][g_177];
                        l_558 = (l_557 = &l_548);
                        g_559 = g_559;
                        l_581 &= (safe_sub_func_int64_t_s_s((safe_rshift_func_int32_t_s_s((((void*)0 == l_566) >= (safe_sub_func_int8_t_s_s((p_12 | (((safe_lshift_func_int64_t_s_u((*l_557), 14)) >= (*l_558)) , (safe_sub_func_uint8_t_u_u((((safe_div_func_uint8_t_u_u((((safe_unary_minus_func_uint64_t_u((g_353[3] || ((-2L) | (0x2DD886BF30E249D0LL != (safe_sub_func_int64_t_s_s((p_11 = 0xB7B5C23E183BDC22LL), p_14))))))) >= 1UL) & p_12), 255UL)) | 1L) ^ p_15), g_120[3][2][4])))), p_15))), 8)), p_14));
                    }
                    if ((((*l_543) = ((((0x1D6039D178CF9438LL ^ (p_11 = ((((safe_sub_func_int8_t_s_s(p_13, g_67)) , ((*l_567) = p_13)) , (((~(safe_mul_func_uint64_t_u_u((*g_383), (((*l_558) | 0x3C7AL) != (safe_mul_func_int64_t_s_s(((*l_590) = l_589), ((safe_sub_func_int16_t_s_s((safe_unary_minus_func_int8_t_s((safe_add_func_int64_t_s_s((((((*l_600) &= ((safe_rshift_func_int16_t_s_s((((((((safe_lshift_func_uint16_t_u_u(((*l_558) , g_260[1]), 1)) , (void*)0) == (void*)0) , p_15) <= p_15) ^ 0x44L) <= (*l_557)), 11)) & 0xD1D4121B45632C49LL)) < 18446744073709551608UL) || 0x715CL) <= 0L), 0x9B2B773926DFC4C4LL)))), (-3L))) ^ l_589))))))) >= 1UL) && 0x35A8015804A5AF3BLL)) <= 65529UL))) <= p_12) & l_589) >= 0xA591L)) , 0x59CDA8DFL))
                    { /* block id: 279 */
                        return (*g_383);
                    }
                    else
                    { /* block id: 281 */
                        int32_t *l_601 = &l_548;
                        l_602 = l_601;
                        (*l_558) = (-1L);
                        --l_604;
                        if (p_14)
                            continue;
                    }
                    (*l_602) = 0xF1AE8558L;
                    if ((safe_mod_func_uint16_t_u_u((l_609 < 0x70L), 0xF017L)))
                    { /* block id: 288 */
                        uint16_t l_620[4][10] = {{65533UL,0xFC20L,65528UL,65528UL,0xFC20L,65533UL,0xFC20L,65528UL,65528UL,0xFC20L},{65533UL,0xFC20L,65528UL,65528UL,0xFC20L,65533UL,0xFC20L,65528UL,65528UL,0xFC20L},{65533UL,0xFC20L,65528UL,65528UL,0xFC20L,65533UL,0xFC20L,65528UL,65528UL,0xFC20L},{65533UL,0xFC20L,0xFC20L,0xFC20L,65535UL,0x3AF1L,65535UL,0xFC20L,0xFC20L,65535UL}};
                        int i, j;
                        l_630 |= (0x959E3EADB7DA57EFLL != ((*l_600) ^= ((safe_add_func_uint8_t_u_u(g_146[0][2][0], (safe_sub_func_int8_t_s_s(((*l_543) = (safe_mul_func_int16_t_s_s((((safe_sub_func_uint8_t_u_u(((*l_533) = (safe_div_func_uint16_t_u_u(l_620[2][2], (safe_sub_func_uint64_t_u_u((safe_sub_func_int8_t_s_s((((((-1L) == p_12) < 9L) , ((3UL && ((safe_mul_func_uint16_t_u_u(((*l_544) = g_137), 0x8A0CL)) >= p_14)) < l_620[2][2])) != (*l_558)), l_620[2][3])), p_13))))), p_11)) == p_15) , 1L), l_629))), 0x4DL)))) && (*g_383))));
                    }
                    else
                    { /* block id: 294 */
                        uint64_t l_631[6];
                        int32_t *l_634[1];
                        int i;
                        for (i = 0; i < 6; i++)
                            l_631[i] = 0UL;
                        for (i = 0; i < 1; i++)
                            l_634[i] = &g_67;
                        (*l_516) = (void*)0;
                        l_631[1]++;
                        (*l_516) = l_634[0];
                    }
                }
                if ((!((!(((*g_383) = 8UL) , ((safe_mul_func_int64_t_s_s((safe_rshift_func_uint16_t_u_s(((8L == p_12) > (g_146[(g_177 + 5)][(g_177 + 1)][g_67] = (*l_558))), (safe_rshift_func_uint64_t_u_u((safe_mul_func_int32_t_s_s((p_14 != 4L), ((((*l_645) = &g_383) == l_647) < (safe_add_func_uint64_t_u_u((+((safe_mul_func_uint8_t_u_u(255UL, 1L)) , p_12)), (*g_383)))))), p_14)))), 0L)) | p_14))) > p_15)))
                { /* block id: 303 */
                    return (*g_383);
                }
                else
                { /* block id: 305 */
                    const uint32_t *l_663 = &g_664;
                    const uint32_t **l_662[4] = {&l_663,&l_663,&l_663,&l_663};
                    uint32_t *l_666 = &g_146[1][0][0];
                    int32_t l_683[8][3] = {{4L,4L,0x454E89FDL},{0x3DD4400EL,1L,0x2D851FC0L},{0x2F6FE72EL,4L,0x2F6FE72EL},{0x2F6FE72EL,0x3DD4400EL,4L},{0x3DD4400EL,0x2F6FE72EL,0x2F6FE72EL},{4L,0x2F6FE72EL,0x2D851FC0L},{1L,0x3DD4400EL,0x454E89FDL},{4L,4L,0x454E89FDL}};
                    int i, j;
                    l_581 = (6L & ((l_683[0][0] = (safe_lshift_func_int8_t_s_u((p_15 > (g_204 = (p_15 < (!(((*g_383) = (safe_add_func_int64_t_s_s(((((*l_543) = ((safe_sub_func_uint32_t_u_u((safe_rshift_func_uint32_t_u_s(((*l_666) |= ((l_665 = &g_146[(g_177 + 5)][(g_177 + 1)][g_67]) != (p_14 , &g_146[(g_177 + 5)][(g_177 + 1)][g_67]))), 16)), (((safe_sub_func_uint8_t_u_u(((safe_lshift_func_int64_t_s_u((safe_add_func_int32_t_s_s(1L, (safe_div_func_uint16_t_u_u((((safe_add_func_int32_t_s_s((safe_add_func_uint8_t_u_u(((*l_533) = (safe_mul_func_uint8_t_u_u((safe_div_func_int32_t_s_s(((*l_557) = (*l_602)), ((p_14 <= 0x5CB1L) || (-1L)))), p_15))), l_683[0][0])), p_15)) , l_684) != l_686), p_14)))), 49)) != l_683[0][0]), 0x8CL)) && g_209) == 0x52B5AFE7L))) || (*l_558))) , l_683[0][0]) , p_13), l_683[7][0]))) , p_13))))), 1))) ^ p_12));
                }
            }
        }
        (*l_602) = (-1L);
    }
    return l_688;
}


/* ------------------------------------------ */
/* 
 * reads : g_207 g_61 g_120 g_146 g_115 g_17 g_260 g_67 g_152 g_209 g_176 g_204 g_175 g_173 g_72 g_353 g_75 g_383 g_454 g_137 g_506
 * writes: g_207 g_115 g_61 g_228 g_67 g_152 g_353 g_137 g_120 g_383 g_389 g_146 g_176 g_177 g_450 g_452 g_454 g_118
 */
static int64_t  func_33(int16_t  p_34, uint32_t  p_35, int32_t  p_36, uint32_t  p_37, int32_t  p_38)
{ /* block id: 88 */
    int32_t l_219 = (-9L);
    int32_t *l_220 = &g_207;
    int32_t l_234 = 0xBE8B1390L;
    int32_t l_237[4][10][6] = {{{0x49E9CF38L,2L,1L,1L,2L,0x49E9CF38L},{(-9L),0x4DFED307L,0x497385A9L,1L,0L,(-1L)},{0x49E9CF38L,0x5EF8F927L,0x73CEC42EL,0xF4329A42L,0x35A5D139L,0x6ADB51A7L},{0x49E9CF38L,0xB38C975FL,0xF4329A42L,1L,0xB38C975FL,(-9L)},{(-9L),0L,0x6353B77AL,1L,0x642ACEB6L,1L},{0x49E9CF38L,(-9L),0x49E9CF38L,0xF4329A42L,0x5EF8F927L,0x497385A9L},{0x49E9CF38L,0x10D0903AL,(-1L),1L,0x10D0903AL,0x73CEC42EL},{(-9L),0x642ACEB6L,0x6ADB51A7L,1L,0x4DFED307L,0xF4329A42L},{0x49E9CF38L,0x35A5D139L,(-9L),0xF4329A42L,(-9L),0x6353B77AL},{0x49E9CF38L,2L,1L,1L,2L,0x49E9CF38L}},{{(-9L),0x4DFED307L,0x497385A9L,1L,0L,(-1L)},{0x49E9CF38L,0x5EF8F927L,0x73CEC42EL,0xF4329A42L,0x35A5D139L,0x6ADB51A7L},{0x49E9CF38L,0xB38C975FL,0xF4329A42L,1L,0xB38C975FL,(-9L)},{(-9L),0L,0x6353B77AL,1L,0x642ACEB6L,1L},{0x49E9CF38L,(-9L),0x49E9CF38L,0xF4329A42L,0x5EF8F927L,0x497385A9L},{0x49E9CF38L,0x10D0903AL,(-1L),1L,0x10D0903AL,0x73CEC42EL},{(-9L),0x642ACEB6L,0x6ADB51A7L,1L,0x4DFED307L,0xF4329A42L},{0x49E9CF38L,0x35A5D139L,(-9L),0xF4329A42L,(-9L),0x6353B77AL},{0x49E9CF38L,2L,1L,1L,2L,0x49E9CF38L},{(-9L),0x4DFED307L,0x497385A9L,1L,0L,(-1L)}},{{0x49E9CF38L,0x5EF8F927L,0x73CEC42EL,0xF4329A42L,0x35A5D139L,0x6ADB51A7L},{0x49E9CF38L,0xB38C975FL,0xF4329A42L,1L,0xB38C975FL,(-9L)},{(-9L),0L,0x6353B77AL,1L,0x642ACEB6L,1L},{0x49E9CF38L,(-9L),0x49E9CF38L,0xF4329A42L,0x5EF8F927L,0x497385A9L},{0x49E9CF38L,0x10D0903AL,(-1L),1L,0x10D0903AL,0x73CEC42EL},{(-9L),0x642ACEB6L,0x6ADB51A7L,1L,0x49E9CF38L,0xAB0565C9L},{0xEEEA6163L,0x6ADB51A7L,1L,0xAB0565C9L,0x497385A9L,4L},{0xEEEA6163L,(-1L),(-1L),(-1L),(-1L),0xEEEA6163L},{1L,0x49E9CF38L,0L,(-1L),0x73CEC42EL,(-1L)},{0xEEEA6163L,0x6353B77AL,0x0EDF683CL,0xAB0565C9L,0x6ADB51A7L,0x500FC77DL}},{{0xEEEA6163L,0xF4329A42L,0xAB0565C9L,(-1L),0xF4329A42L,1L},{1L,0x73CEC42EL,4L,(-1L),(-9L),(-1L)},{0xEEEA6163L,0x497385A9L,0xEEEA6163L,0xAB0565C9L,0x6353B77AL,0L},{0xEEEA6163L,1L,(-1L),(-1L),1L,0x0EDF683CL},{1L,(-9L),0x500FC77DL,(-1L),0x49E9CF38L,0xAB0565C9L},{0xEEEA6163L,0x6ADB51A7L,1L,0xAB0565C9L,0x497385A9L,4L},{0xEEEA6163L,(-1L),(-1L),(-1L),(-1L),0xEEEA6163L},{1L,0x49E9CF38L,0L,(-1L),0x73CEC42EL,(-1L)},{0xEEEA6163L,0x6353B77AL,0x0EDF683CL,0xAB0565C9L,0x6ADB51A7L,0x500FC77DL},{0xEEEA6163L,0xF4329A42L,0xAB0565C9L,(-1L),0xF4329A42L,1L}}};
    int32_t l_244 = 0xA1254473L;
    uint8_t l_247[5][9][5] = {{{0x33L,253UL,0x89L,0UL,0UL},{5UL,0xE0L,8UL,1UL,0xD5L},{0x1CL,0UL,0x78L,0x49L,9UL},{0xD5L,0xA9L,255UL,0x72L,0xE1L},{253UL,0xE7L,9UL,254UL,0x35L},{0x75L,0x21L,8UL,0x49L,1UL},{1UL,0x41L,1UL,0xD2L,0xD2L},{0x83L,0x6EL,0x83L,251UL,0x41L},{9UL,0xFDL,0xE0L,0xB9L,0x41L}},{{9UL,0x57L,5UL,255UL,8UL},{0xE7L,0xEDL,0xE0L,0x41L,0x33L},{251UL,0x18L,0x83L,255UL,0xE0L},{1UL,1UL,1UL,9UL,253UL},{0UL,255UL,8UL,0UL,251UL},{0x98L,0x36L,9UL,0xFDL,4UL},{8UL,0UL,255UL,255UL,0UL},{0xFDL,0x33L,0x78L,253UL,0x11L},{0xE0L,0UL,8UL,0xBFL,0x75L}},{{254UL,0x78L,0x89L,0x43L,0xE0L},{0xE0L,8UL,0x72L,9UL,253UL},{0xFDL,0x98L,0x33L,0x35L,255UL},{0UL,0UL,0x18L,1UL,0x75L},{1UL,0x33L,0x5DL,0x35L,1UL},{0x72L,0xA9L,0UL,0xE1L,255UL},{9UL,0x3EL,0x3EL,9UL,253UL},{253UL,0x75L,251UL,0xD5L,8UL},{0x1CL,0xE7L,0UL,0UL,0x36L}},{{0x41L,8UL,5UL,0xD5L,0xBFL},{0xDAL,0xE0L,0x35L,9UL,0UL},{1UL,0UL,0x04L,0xE1L,0xD5L},{0xC0L,250UL,1UL,0x35L,0x89L},{255UL,255UL,0UL,1UL,0xE0L},{255UL,0xC0L,0xE7L,0xD2L,0xE7L},{1UL,1UL,0UL,0x41L,0x49L},{0x3EL,253UL,1UL,0x41L,253UL},{0x7EL,253UL,0xC7L,8UL,0UL}},{{254UL,253UL,0x49L,0x33L,0xC0L},{0x57L,1UL,0xE1L,0xE0L,250UL},{4UL,0xC0L,0xE0L,253UL,0x59L},{5UL,255UL,0x5EL,251UL,0x72L},{1UL,250UL,0x33L,4UL,0xABL},{0x63L,0UL,0x49L,0UL,0x63L},{0x78L,0xE0L,255UL,0x11L,0x41L},{0x49L,8UL,0x21L,0x75L,0UL},{250UL,0xE7L,0xEDL,0xE0L,0x41L}}};
    uint32_t l_251[3][8] = {{4294967292UL,4UL,4294967292UL,4294967292UL,4UL,4294967292UL,4294967292UL,4UL},{4UL,4294967292UL,4294967292UL,4UL,4294967292UL,4294967292UL,4UL,4294967292UL},{4UL,4UL,4294967294UL,4UL,4UL,4294967294UL,4UL,4UL}};
    uint64_t l_344 = 0x0BB0A3FC121777A6LL;
    int32_t l_372 = 0x865345E4L;
    uint32_t l_490 = 0UL;
    int32_t l_507[9] = {0L,0L,0L,0L,0L,0L,0L,0L,0L};
    int i, j, k;
lbl_298:
    (*l_220) ^= l_219;
    for (p_34 = 9; (p_34 == 26); p_34 = safe_add_func_int64_t_s_s(p_34, 1))
    { /* block id: 92 */
        int64_t l_238 = 0x29634F4FC1ADAE8ALL;
        int32_t l_243 = 0x74E1F021L;
        const int16_t l_273 = (-10L);
        int64_t l_275[7] = {0x03250D31974A09D6LL,0x03250D31974A09D6LL,0x03250D31974A09D6LL,0x03250D31974A09D6LL,0x03250D31974A09D6LL,0x03250D31974A09D6LL,0x03250D31974A09D6LL};
        uint8_t l_277 = 0xF3L;
        int32_t l_278 = (-7L);
        int32_t l_290 = 0xB616BFC2L;
        int32_t ***l_348 = &g_75;
        uint8_t l_362 = 0x0FL;
        uint64_t *l_373 = &g_204;
        int32_t *l_456 = &l_278;
        uint64_t l_467 = 0x857B5658F5F5F9B7LL;
        int i;
        for (g_115 = 1; (g_115 <= 4); g_115 += 1)
        { /* block id: 95 */
            int32_t *l_223 = &g_207;
            int32_t **l_224 = &l_223;
            int32_t l_236 = 0x48D46CA4L;
            int32_t l_239 = 0x71D09A1BL;
            int32_t l_240 = 0x2BDA32A2L;
            int32_t l_241 = 0x80303634L;
            int32_t l_242 = 0x63875D3EL;
            int32_t l_245 = 0L;
            int32_t l_246[4] = {0x3FB84F7EL,0x3FB84F7EL,0x3FB84F7EL,0x3FB84F7EL};
            int i;
            (*l_224) = l_223;
            for (g_61 = 0; (g_61 <= 4); g_61 += 1)
            { /* block id: 99 */
                for (p_38 = 0; (p_38 >= 0); p_38 -= 1)
                { /* block id: 102 */
                    int i, j, k;
                    if (g_120[g_61][(p_38 + 4)][g_61])
                        break;
                    if (g_146[(p_38 + 3)][p_38][p_38])
                        break;
                }
            }
            for (p_35 = 0; (p_35 <= 4); p_35 += 1)
            { /* block id: 109 */
                int32_t ***l_226 = &g_75;
                int32_t **** const l_225 = &l_226;
                int32_t *****l_229 = &g_228;
                int32_t *l_230 = &g_67;
                int8_t l_231 = 0x61L;
                int32_t *l_232 = (void*)0;
                int32_t *l_233 = &g_67;
                int32_t *l_235[1][2];
                int8_t *l_261[5][5] = {{&g_137,&g_137,(void*)0,&g_137,&g_61},{&g_61,&g_137,&l_231,&g_137,&g_61},{(void*)0,(void*)0,&g_137,&g_61,(void*)0},{&g_61,&g_137,&g_137,&g_61,&g_61},{&g_137,&g_61,&l_231,(void*)0,(void*)0}};
                int i, j, k;
                for (i = 0; i < 1; i++)
                {
                    for (j = 0; j < 2; j++)
                        l_235[i][j] = &l_234;
                }
                (*l_229) = l_225;
                ++l_247[4][6][4];
                (*l_233) = ((g_120[p_35][g_115][(p_35 + 1)] || ((((!0x2CD80B03L) , l_251[1][7]) , ((l_243 = ((((**l_224) > (9UL ^ ((l_243 , (safe_lshift_func_uint64_t_u_s(p_38, (((safe_div_func_uint64_t_u_u((safe_sub_func_int32_t_s_s((g_17[0] && ((safe_lshift_func_int32_t_s_u(((0x3001L > 0xAD47L) , g_260[0]), (*l_230))) < (**l_224))), (*l_220))), 18446744073709551615UL)) , &g_120[0][6][1]) != &g_120[2][3][0])))) > p_38))) == g_120[3][0][0]) < 18446744073709551615UL)) != 0x8BL)) == p_38)) && g_67);
            }
            for (l_239 = 0; (l_239 <= 2); l_239 += 1)
            { /* block id: 117 */
                for (g_67 = 0; (g_67 <= 2); g_67 += 1)
                { /* block id: 120 */
                    int i, j;
                    if (l_251[l_239][(g_115 + 2)])
                    { /* block id: 121 */
                        int i, j;
                        return l_251[l_239][(l_239 + 3)];
                    }
                    else
                    { /* block id: 123 */
                        return g_67;
                    }
                }
            }
        }
        for (l_243 = 0; (l_243 <= 4); l_243 += 1)
        { /* block id: 131 */
            const int64_t l_262 = 1L;
            int32_t l_272 = 8L;
            int32_t l_287 = 0x907A83FEL;
            int32_t l_289 = 8L;
            int32_t l_291 = 0L;
            int32_t **l_330[1][1];
            uint64_t *l_382[1][3][2] = {{{(void*)0,(void*)0},{(void*)0,(void*)0},{(void*)0,(void*)0}}};
            uint16_t l_420[5];
            int32_t l_455 = 0x51F7F5B7L;
            uint8_t * const l_457 = &l_247[4][6][4];
            uint64_t l_466 = 0x7D91A805E8074731LL;
            int i, j, k;
            for (i = 0; i < 1; i++)
            {
                for (j = 0; j < 1; j++)
                    l_330[i][j] = &l_220;
            }
            for (i = 0; i < 5; i++)
                l_420[i] = 0x332BL;
            if (l_262)
                break;
            for (g_207 = 0; (g_207 <= 0); g_207 += 1)
            { /* block id: 135 */
                uint32_t *l_269 = &l_251[1][3];
                uint16_t *l_274 = &g_152;
                uint32_t l_276 = 0x1E50346FL;
                int32_t l_284 = 0L;
                int32_t l_294[9] = {5L,5L,5L,5L,5L,5L,5L,5L,5L};
                int32_t ***l_347 = &g_75;
                int32_t *l_350 = &l_234;
                int64_t ***l_384 = (void*)0;
                int64_t ***l_385 = (void*)0;
                int64_t *l_388 = &l_275[4];
                int64_t **l_387 = &l_388;
                int64_t ***l_386[5] = {&l_387,&l_387,&l_387,&l_387,&l_387};
                int i, j, k;
                l_278 ^= (safe_mul_func_uint32_t_u_u(l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)], (l_277 = (((safe_lshift_func_uint16_t_u_u(((0x6D443974L != (safe_sub_func_int16_t_s_s((l_237[g_207][(g_207 + 7)][l_243] >= g_146[(g_207 + 1)][(g_207 + 3)][g_207]), ((*l_274) &= ((p_38 && (++(*l_269))) != ((l_272 |= (p_36 < (p_38 || 255UL))) <= (p_35 > l_273))))))) | l_275[4]), l_276)) < p_34) ^ p_34))));
                for (g_152 = 0; (g_152 <= 4); g_152 += 1)
                { /* block id: 143 */
                    int16_t l_279 = 0x6D0FL;
                    int32_t l_285 = 0xC060AD2AL;
                    int32_t l_286 = 1L;
                    int16_t l_292 = (-8L);
                    int32_t l_293[7];
                    uint16_t l_295 = 0xE6B7L;
                    uint8_t *l_299 = &g_120[0][6][0];
                    const uint32_t l_337 = 4294967288UL;
                    uint32_t l_340[4];
                    int i;
                    for (i = 0; i < 7; i++)
                        l_293[i] = 0xE2F1190AL;
                    for (i = 0; i < 4; i++)
                        l_340[i] = 1UL;
                    for (p_38 = 3; (p_38 >= 0); p_38 -= 1)
                    { /* block id: 146 */
                        int32_t *l_280 = &l_272;
                        int32_t *l_281 = &l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)];
                        int32_t *l_282 = (void*)0;
                        int32_t *l_283[7][8][4] = {{{(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0},{&l_237[3][5][2],&l_234,&l_237[3][5][2],&g_207},{(void*)0,&l_234,&g_67,(void*)0},{&l_237[3][5][2],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[g_207][(g_207 + 7)][l_243],(void*)0},{&l_244,&l_234,(void*)0,&g_207},{(void*)0,&l_234,(void*)0,(void*)0},{&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)]},{(void*)0,(void*)0,&l_278,&l_237[3][5][2]}},{{&l_244,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_234,&g_67},{&l_272,&g_67,(void*)0,&l_237[g_207][(g_207 + 7)][l_243]},{&l_272,&g_207,&l_234,(void*)0},{&l_244,&l_237[g_207][(g_207 + 7)][l_243],&l_278,(void*)0},{(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207,&g_207},{&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0,&l_278},{(void*)0,&g_67,(void*)0,&l_234},{&l_244,(void*)0,&l_237[g_207][(g_207 + 7)][l_243],(void*)0}},{{&l_237[3][5][2],(void*)0,&g_67,&l_234},{(void*)0,&g_67,&l_237[3][5][2],&l_278},{&l_237[3][5][2],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207},{(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0,(void*)0},{&l_244,&l_237[g_207][(g_207 + 7)][l_243],&g_207,(void*)0},{&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207,(void*)0,&l_237[g_207][(g_207 + 7)][l_243]},{(void*)0,&g_67,(void*)0,&g_67},{&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207,&l_237[3][5][2]}},{{&l_244,(void*)0,(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)]},{(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0},{&l_237[3][5][2],&l_234,&l_237[3][5][2],&g_207},{(void*)0,&l_234,&g_67,(void*)0},{&l_237[3][5][2],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[g_207][(g_207 + 7)][l_243],(void*)0},{&l_244,&l_234,(void*)0,&g_207},{(void*)0,&l_234,(void*)0,(void*)0},{&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)]}},{{(void*)0,(void*)0,&l_278,&l_237[3][5][2]},{&l_244,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_234,&g_67},{&l_272,&g_67,(void*)0,&l_237[g_207][(g_207 + 7)][l_243]},{&l_272,&g_207,&l_234,(void*)0},{&l_244,&l_237[g_207][(g_207 + 7)][l_243],&l_278,(void*)0},{(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_207,&g_207},{&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0,&l_278},{(void*)0,&g_67,(void*)0,&l_234}},{{&l_244,(void*)0,&l_237[g_207][(g_207 + 7)][l_243],(void*)0},{&l_237[3][5][2],(void*)0,&g_67,&l_234},{(void*)0,&g_67,&l_237[3][5][2],&l_278},{&l_234,(void*)0,(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)]},{(void*)0,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0,&l_272},{&l_237[3][5][2],(void*)0,&l_244,(void*)0},{&l_237[g_207][(g_207 + 7)][l_243],&l_244,(void*)0,(void*)0},{&l_272,&l_237[3][5][2],(void*)0,&g_67}},{{&l_237[g_207][(g_207 + 7)][l_243],(void*)0,&l_244,&g_67},{&l_237[3][5][2],&l_237[3][5][2],(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_234,&l_244,&g_67,&l_244},{&l_272,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],&g_67,(void*)0},{&g_207,(void*)0,(void*)0,(void*)0},{&g_207,&l_237[(g_207 + 1)][(g_207 + 2)][(g_207 + 3)],(void*)0,&l_244},{&g_67,&l_244,&l_272,(void*)0}}};
                        int8_t l_288 = 0x15L;
                        uint8_t **l_300 = &l_299;
                        int i, j, k;
                        l_295--;
                        if (p_36)
                            goto lbl_298;
                        (*l_280) = ((((*l_300) = l_299) == (void*)0) , (((safe_unary_minus_func_int32_t_s(((safe_sub_func_uint16_t_u_u(g_152, (l_262 || l_289))) & l_286))) || ((safe_mul_func_uint8_t_u_u((&g_175 == (void*)0), (g_17[0] == g_146[1][2][0]))) >= g_209)) | 5UL));
                        l_278 = (safe_rshift_func_uint64_t_u_u((safe_mul_func_uint8_t_u_u(((*l_220) <= ((((g_17[0] | ((safe_mod_func_int64_t_s_s((safe_mul_func_uint8_t_u_u(((0x680E14F994BD5D49LL | ((g_176 , (((safe_div_func_int32_t_s_s((safe_mul_func_int8_t_s_s(((safe_add_func_uint32_t_u_u((safe_lshift_func_uint64_t_u_s((safe_rshift_func_uint8_t_u_u((safe_mul_func_int16_t_s_s(0x00E7L, ((l_237[g_207][(g_207 + 7)][l_243] > p_38) , ((safe_div_func_int16_t_s_s(g_17[0], l_287)) <= 0xCF96D034L)))), g_67)), p_37)), 0L)) && g_204), (*l_220))), l_237[g_207][(g_207 + 7)][l_243])) > 0x54E8BCB9L) , p_34)) > p_35)) , p_38), 0xAAL)), g_61)) , 0x1EL)) , g_120[1][0][2]) , (void*)0) != l_330[0][0])), g_204)), p_37));
                    }
                    l_290 = ((safe_mod_func_int8_t_s_s((safe_mod_func_uint64_t_u_u((safe_mod_func_int32_t_s_s(l_337, (safe_mod_func_int8_t_s_s((1L >= ((l_340[3] ^ ((safe_add_func_int8_t_s_s(l_276, (((safe_unary_minus_func_int8_t_s((l_344 == (p_37 <= g_175)))) | ((((*l_220) ^ (safe_add_func_uint32_t_u_u(((*l_269) &= (p_37 != 0xAAA1835EFA3F52DBLL)), g_17[0]))) , p_36) && l_243)) & g_173))) & 0x06EA870815F8AAC8LL)) || p_37)), g_146[1][0][0])))), 0x77C2A98AAB4A7388LL)), 0xAFL)) , l_294[0]);
                }
                if ((l_347 == (l_348 = (void*)0)))
                { /* block id: 157 */
                    int32_t *l_349 = (void*)0;
                    l_350 = l_349;
                    l_237[g_207][(g_207 + 7)][l_243] &= (safe_sub_func_int64_t_s_s(p_35, (g_353[3] = p_37)));
                }
                else
                { /* block id: 161 */
                    int8_t *l_360 = (void*)0;
                    int8_t *l_361 = &g_137;
                    int32_t l_374 = 0x5C9324BEL;
                    uint8_t *l_378[7][3][3] = {{{&l_247[4][6][4],&g_120[3][2][3],&l_247[4][6][4]},{(void*)0,&g_176,&l_277},{&g_120[2][6][3],&l_277,(void*)0}},{{&g_176,&l_247[0][2][4],&g_120[4][6][0]},{&l_277,&l_277,(void*)0},{&g_176,&g_120[g_207][(g_207 + 6)][(l_243 + 1)],&g_120[1][6][3]}},{{&g_120[2][6][3],&g_120[0][5][1],&l_277},{(void*)0,(void*)0,&g_120[1][1][2]},{&l_247[4][6][4],&g_120[4][6][4],&g_176}},{{&g_120[0][5][1],(void*)0,&g_176},{&g_120[4][6][0],&g_120[1][1][2],&g_120[1][1][2]},{&g_120[1][6][3],&g_176,&l_277}},{{&g_120[3][2][3],(void*)0,&g_120[1][6][3]},{&g_353[4],(void*)0,(void*)0},{&l_362,&g_120[g_207][(g_207 + 6)][(l_243 + 1)],&g_120[4][6][0]}},{{&g_120[4][6][4],(void*)0,(void*)0},{&l_247[0][2][4],(void*)0,&l_277},{&g_120[3][2][4],&g_176,&l_247[4][6][4]}},{{(void*)0,&g_120[1][1][2],&l_247[2][0][0]},{&g_120[1][1][2],(void*)0,&g_120[g_207][(g_207 + 6)][(l_243 + 1)]},{&g_120[1][1][2],&g_120[4][6][4],&g_120[3][2][4]}}};
                    uint64_t **l_381[5];
                    int i, j, k;
                    for (i = 0; i < 5; i++)
                        l_381[i] = (void*)0;
                    l_374 ^= (((safe_div_func_int8_t_s_s((safe_sub_func_int8_t_s_s(((safe_rshift_func_uint64_t_u_s((249UL ^ ((g_120[g_207][(g_207 + 6)][(l_243 + 1)] = (g_152 | ((((((l_362 &= ((*l_361) = g_61)) == (((*g_72) & (safe_rshift_func_int8_t_s_s(1L, ((((safe_rshift_func_uint64_t_u_s(1UL, (safe_mul_func_uint16_t_u_u(((safe_unary_minus_func_uint8_t_u((safe_mod_func_int16_t_s_s(((l_372 , &g_17[0]) != l_373), 0xCE3AL)))) || 0xA5L), g_353[3])))) , g_173) < p_38) > p_34)))) <= 0UL)) , (*l_350)) <= (*l_220)) == 0x49C7F3C7L) > (*l_220)))) >= (*l_220))), p_36)) == p_34), 0x7BL)), p_34)) && p_34) <= p_34);
                    (*l_350) = ((g_115 >= (safe_unary_minus_func_int8_t_s(((*l_347) != (void*)0)))) , ((g_353[3] = (((safe_lshift_func_uint16_t_u_s((((*l_269) &= p_37) , (((3L < ((((--g_120[1][6][3]) ^ (l_374 | ((-8L) > ((g_383 = (l_382[0][1][1] = &g_209)) != &g_17[0])))) == 0x706FL) == (*g_72))) == p_38) >= g_353[3])), p_36)) && p_35) == g_260[0])) < 0xDDL));
                    l_374 &= ((*l_350) = 0x518DC319L);
                }
                g_389[4] = (void*)0;
            }
            for (p_36 = 4; (p_36 >= 0); p_36 -= 1)
            { /* block id: 179 */
                uint32_t *l_395[8][5][2] = {{{(void*)0,&g_177},{&l_251[1][7],(void*)0},{&g_177,&g_177},{&l_251[1][7],&l_251[0][5]},{(void*)0,&l_251[0][5]}},{{&l_251[1][7],&g_177},{&g_177,(void*)0},{&l_251[1][7],&g_177},{(void*)0,&g_177},{&l_251[1][7],(void*)0}},{{&g_177,&g_177},{&l_251[1][7],&l_251[0][5]},{(void*)0,&l_251[0][5]},{&l_251[1][7],&g_177},{&g_177,(void*)0}},{{&l_251[1][7],&g_177},{(void*)0,&g_177},{&l_251[1][7],(void*)0},{&g_177,&g_177},{&l_251[1][7],&l_251[0][5]}},{{(void*)0,&l_251[0][5]},{&l_251[1][7],&g_177},{&g_177,(void*)0},{&l_251[1][7],&g_177},{(void*)0,&g_177}},{{&l_251[1][7],(void*)0},{&g_177,&g_177},{&l_251[1][7],&l_251[0][5]},{(void*)0,&l_251[0][5]},{&l_251[1][7],&g_177}},{{&g_177,(void*)0},{&l_251[1][7],&g_177},{(void*)0,&g_177},{&l_251[1][7],(void*)0},{&g_177,&g_177}},{{&l_251[1][7],&l_251[0][5]},{(void*)0,&l_251[0][5]},{&l_251[1][7],&g_177},{&g_177,(void*)0},{&l_251[1][7],&g_177}}};
                uint8_t *l_410 = &g_176;
                int64_t *l_415 = &l_275[4];
                int32_t l_421 = (-3L);
                int32_t *l_505 = &l_272;
                int i, j, k;
                l_421 |= ((((*g_383) >= (safe_div_func_int16_t_s_s(g_120[0][1][3], (safe_mod_func_int32_t_s_s(0xA38D6040L, (g_146[1][0][0] = ((*l_220) ^ 0x6EC2F027CAFC2E89LL))))))) < ((*g_383) , (safe_add_func_int16_t_s_s((((safe_mod_func_uint32_t_u_u(((safe_rshift_func_int8_t_s_u((safe_mod_func_uint32_t_u_u(((safe_mod_func_uint64_t_u_u((safe_rshift_func_int16_t_s_s(((safe_mod_func_int64_t_s_s(((*l_415) = (((*l_410)++) , ((safe_rshift_func_uint32_t_u_u(g_176, 8)) < 2L))), (safe_mod_func_int16_t_s_s((safe_mul_func_int16_t_s_s((-1L), p_36)), g_175)))) > g_17[0]), 11)), g_120[p_36][(p_36 + 3)][(l_243 + 1)])) , g_152), g_120[p_36][(p_36 + 3)][(l_243 + 1)])), 4)) ^ l_420[3]), p_35)) >= p_35) || p_37), 4L)))) || g_115);
                (*l_220) = (safe_sub_func_uint16_t_u_u((safe_div_func_int64_t_s_s(((*l_415) ^= (g_120[3][2][4] || ((safe_sub_func_uint16_t_u_u(((p_36 >= (*l_220)) < (g_146[1][0][0] < ((safe_rshift_func_uint64_t_u_s((*g_383), 7)) , (0x480CAD9B941AC8B8LL & ((((((l_290 = 0x1499A9CAL) ^ (g_177 = (((((((safe_lshift_func_uint64_t_u_u((safe_add_func_int8_t_s_s(g_204, (*l_220))), 4)) , g_120[3][2][4]) == p_37) & 0xC786DFC639126B8FLL) > g_120[p_36][(p_36 + 3)][(l_243 + 1)]) | l_421) > 0x7A24L))) , p_36) || 9L) >= l_421) || p_38))))), g_260[0])) , g_120[3][2][4]))), p_34)), p_35));
                if ((g_175 <= p_38))
                { /* block id: 188 */
                    int16_t *l_451 = &g_452[0];
                    int16_t *l_453 = &g_454;
                    uint8_t **l_458 = (void*)0;
                    uint8_t **l_459 = &l_410;
                    int32_t l_460 = 0x5365931CL;
                    if (l_219)
                        goto lbl_298;
                    l_456 = ((p_38 == (((((safe_mod_func_uint32_t_u_u(((safe_mod_func_int16_t_s_s(p_36, g_120[p_36][(p_36 + 3)][(l_243 + 1)])) || (safe_lshift_func_int8_t_s_u(((safe_lshift_func_uint8_t_u_u((safe_lshift_func_int64_t_s_u((safe_add_func_uint16_t_u_u(0x5C0EL, (safe_mul_func_int16_t_s_s(((*l_453) ^= ((*l_451) = ((safe_add_func_uint8_t_u_u((l_395[2][2][1] != (g_450 = &l_251[0][2])), g_176)) == p_36))), 0xAA76L)))), (*g_383))), g_260[0])) , p_38), l_455))), 0x808413C5L)) != p_38) & (*g_383)) > g_61) , (*g_383))) , (void*)0);
                    if ((g_17[0] , (l_460 = (l_457 == ((*l_459) = (void*)0)))))
                    { /* block id: 196 */
                        uint32_t l_461 = 0UL;
                        l_461--;
                    }
                    else
                    { /* block id: 198 */
                        l_278 &= ((safe_lshift_func_int8_t_s_u((0x1332L > (*l_220)), 5)) < g_454);
                        (*l_220) = (l_466 = p_37);
                        --l_467;
                    }
                }
                else
                { /* block id: 204 */
                    uint8_t *l_501 = &l_362;
                    int32_t l_504 = 0x71E74C57L;
                    (*l_220) = (((safe_rshift_func_int32_t_s_u(((((safe_lshift_func_uint8_t_u_s(((safe_sub_func_uint8_t_u_u((g_152 != ((safe_sub_func_int64_t_s_s((safe_lshift_func_uint8_t_u_s(((*l_457)--), (safe_sub_func_int32_t_s_s((safe_div_func_int32_t_s_s((safe_mul_func_int64_t_s_s(((safe_rshift_func_int8_t_s_u((l_490 != (l_421 = (safe_mul_func_int16_t_s_s((g_120[p_36][(p_36 + 3)][(l_243 + 1)] < ((safe_div_func_int64_t_s_s((((safe_div_func_int8_t_s_s((safe_mul_func_uint8_t_u_u(g_176, (g_137 , (safe_div_func_uint8_t_u_u(((*l_501) = (p_34 & (0x569070D5L != 4294967292UL))), (safe_mul_func_int8_t_s_s((-4L), p_36))))))), p_38)) != p_37) & 4294967295UL), (-1L))) || g_120[p_36][(p_36 + 3)][(l_243 + 1)])), p_34)))), 5)) >= g_120[p_36][(p_36 + 3)][(l_243 + 1)]), p_36)), p_35)), 0x9CC52846L)))), p_37)) <= (-1L))), g_146[2][3][0])) >= p_37), 3)) && p_35) >= 1UL) < 6UL), 23)) >= l_504) <= p_35);
                    l_505 = &l_504;
                    l_456 = &l_504;
                }
            }
        }
        l_220 = &l_372;
        (*l_220) ^= p_34;
    }
    (*g_506) = &l_372;
    return l_507[7];
}


/* ------------------------------------------ */
/* 
 * reads : g_61
 * writes:
 */
static uint16_t  func_41(int32_t  p_42, int32_t  p_43, int8_t  p_44, uint32_t  p_45)
{ /* block id: 82 */
    const int32_t *l_211 = &g_67;
    const int32_t **l_212 = &l_211;
    int32_t l_213 = 0x22A78F6BL;
    int32_t l_214 = 0xA089950BL;
    uint32_t l_215 = 0UL;
    (*l_212) = l_211;
    --l_215;
    (*l_212) = (*l_212);
    (*l_212) = (*l_212);
    return g_61;
}


/* ------------------------------------------ */
/* 
 * reads : g_71 g_67 g_75 g_17 g_61 g_115 g_120 g_137 g_152 g_146 g_173 g_176 g_175 g_204 g_207
 * writes: g_61 g_115 g_118 g_120 g_67 g_146 g_152 g_173 g_175 g_137 g_176 g_177 g_197 g_204 g_207
 */
static int16_t  func_55(int32_t  p_56, uint16_t  p_57, int8_t  p_58)
{ /* block id: 2 */
    int32_t *l_64 = (void*)0;
    int32_t **l_63 = &l_64;
    int32_t *l_66[8] = {&g_67,(void*)0,&g_67,&g_67,(void*)0,&g_67,&g_67,(void*)0};
    int32_t **l_65 = &l_66[2];
    int32_t ***l_76 = &l_65;
    int8_t l_144 = 3L;
    uint32_t *l_145[1][5][2] = {{{&g_146[1][0][0],(void*)0},{&g_146[1][0][0],&g_146[1][0][0]},{&g_146[1][0][0],(void*)0},{&g_146[1][0][0],(void*)0},{(void*)0,(void*)0}}};
    int64_t l_178 = 0x43543006B1119AB3LL;
    uint64_t *l_203 = &g_204;
    int64_t *l_205 = (void*)0;
    int64_t *l_206 = &l_178;
    int i, j, k;
    (*l_65) = ((*l_63) = (void*)0);
    (*l_76) = func_68(g_71[0][0][1], g_67);
    g_207 &= (p_56 & (safe_div_func_uint64_t_u_u((safe_div_func_int16_t_s_s((((*l_206) = ((safe_add_func_uint64_t_u_u(((*l_203) &= (((*l_76) = func_68((p_57 , func_83(g_17[0], &l_65, ((((((safe_mul_func_uint32_t_u_u(0x26471B2AL, 4294967287UL)) >= g_17[0]) && (((safe_rshift_func_int16_t_s_s((p_58 , (g_177 = (g_176 |= func_95((g_146[1][0][0] = (safe_mul_func_uint64_t_u_u((safe_mod_func_uint32_t_u_u((safe_mod_func_uint16_t_u_u(((func_103(g_61, g_67) | l_144) || g_17[0]), g_137)), (-6L))), 0xBC7F3FAEFD05EA4BLL))))))), g_17[0])) , g_146[1][0][0]) != 0x11L)) && 0x3FA0232FL) > p_58) >= l_178), p_56, g_17[0])), p_56)) != (void*)0)), g_17[0])) == g_17[0])) & g_17[0]), g_17[0])), (-5L))));
    return p_56;
}


/* ------------------------------------------ */
/* 
 * reads : g_75
 * writes:
 */
static int32_t ** func_68(const int32_t ** p_69, int64_t  p_70)
{ /* block id: 5 */
    int32_t *l_74 = &g_67;
    int32_t **l_73 = &l_74;
    return g_75;
}


/* ------------------------------------------ */
/* 
 * reads : g_175 g_146 g_176
 * writes: g_197 g_67
 */
static const int32_t ** func_83(uint32_t  p_84, int32_t *** p_85, int16_t  p_86, const int16_t  p_87, uint8_t  p_88)
{ /* block id: 59 */
    int32_t *l_183 = &g_67;
    int8_t *l_195 = (void*)0;
    int32_t l_198 = 0x2269D596L;
    const int32_t **l_202[8][7][4] = {{{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72},{&g_72,&g_72,(void*)0,&g_72},{&g_72,(void*)0,(void*)0,&g_72},{&g_72,(void*)0,&g_72,&g_72}},{{(void*)0,&g_72,&g_72,&g_72},{(void*)0,&g_72,&g_72,&g_72},{&g_72,&g_72,(void*)0,(void*)0},{&g_72,&g_72,(void*)0,&g_72},{&g_72,&g_72,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72}},{{&g_72,&g_72,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72},{&g_72,&g_72,(void*)0,&g_72},{&g_72,(void*)0,(void*)0,&g_72},{&g_72,(void*)0,&g_72,&g_72},{(void*)0,&g_72,&g_72,&g_72}},{{(void*)0,&g_72,&g_72,&g_72},{&g_72,&g_72,(void*)0,(void*)0},{&g_72,&g_72,(void*)0,&g_72},{&g_72,&g_72,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72}},{{&g_72,(void*)0,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72},{&g_72,&g_72,(void*)0,&g_72},{&g_72,(void*)0,(void*)0,&g_72},{&g_72,(void*)0,&g_72,&g_72},{(void*)0,&g_72,&g_72,&g_72},{(void*)0,&g_72,&g_72,&g_72}},{{&g_72,&g_72,(void*)0,(void*)0},{&g_72,&g_72,(void*)0,&g_72},{&g_72,&g_72,&g_72,(void*)0},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72}},{{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,(void*)0,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,(void*)0},{&g_72,&g_72,&g_72,(void*)0}},{{&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,(void*)0},{&g_72,&g_72,(void*)0,(void*)0},{&g_72,&g_72,&g_72,&g_72},{(void*)0,&g_72,&g_72,&g_72},{&g_72,(void*)0,(void*)0,&g_72},{&g_72,&g_72,&g_72,&g_72}}};
    int i, j, k;
    for (p_86 = 0; (p_86 <= 0); p_86 += 1)
    { /* block id: 62 */
        uint8_t *l_179 = &g_120[3][2][4];
        uint8_t *l_180[3];
        int32_t **l_184 = &l_183;
        int32_t * const l_185 = &g_67;
        int8_t **l_196[1][2];
        int i, j;
        for (i = 0; i < 3; i++)
            l_180[i] = &g_120[0][1][1];
        for (i = 0; i < 1; i++)
        {
            for (j = 0; j < 2; j++)
                l_196[i][j] = &l_195;
        }
        if (((((l_179 == (l_180[0] = &g_120[3][2][4])) | 0UL) || (((g_175 ^ ((((*l_184) = l_183) == l_185) && ((+((*l_185) = (((p_88++) || ((safe_add_func_int16_t_s_s(((safe_lshift_func_uint16_t_u_s(p_87, (safe_sub_func_uint64_t_u_u((((g_197 = l_195) != &g_61) != p_87), l_198)))) == g_146[1][0][0]), 0xD897L)) , g_176)) | p_87))) > p_87))) || 3UL) <= l_198)) < p_84))
        { /* block id: 68 */
            uint32_t l_199 = 0x9424D4B5L;
            const int32_t **l_200 = (void*)0;
            if (l_199)
                break;
            return l_200;
        }
        else
        { /* block id: 71 */
            const int32_t **l_201[9][8] = {{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72},{&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72,&g_72}};
            int i, j;
            return l_201[0][1];
        }
    }
    return l_202[7][1][0];
}


/* ------------------------------------------ */
/* 
 * reads : g_152 g_61 g_146 g_173 g_137 g_17
 * writes: g_152 g_61 g_67 g_120 g_173 g_115 g_175 g_137
 */
static int16_t  func_95(uint32_t  p_96)
{ /* block id: 36 */
    int32_t *l_147 = &g_67;
    int32_t l_148 = 0x7C3F9E42L;
    int32_t *l_149 = &g_67;
    int32_t l_150[2];
    int32_t *l_151[4] = {&l_148,&l_148,&l_148,&l_148};
    int i;
    for (i = 0; i < 2; i++)
        l_150[i] = 0x78BCCA94L;
    g_152++;
    for (g_61 = 0; (g_61 == 8); g_61 = safe_add_func_uint32_t_u_u(g_61, 9))
    { /* block id: 40 */
        uint8_t *l_159 = &g_120[3][2][4];
        const int32_t **l_160 = &g_72;
        const int32_t ***l_161 = &l_160;
        uint32_t *l_162 = &g_146[5][1][0];
        int32_t l_172 = 1L;
        uint64_t *l_174 = &g_115;
        (*l_149) = (safe_unary_minus_func_int16_t_s(0x574FL));
        g_175 = (((*l_174) = (safe_unary_minus_func_int32_t_s(((((((*l_159) = 1UL) , (void*)0) != ((*l_161) = l_160)) , ((l_162 = &g_146[1][0][0]) == &p_96)) && (((safe_lshift_func_int32_t_s_s((g_173 &= (l_172 = (safe_sub_func_int8_t_s_s((((safe_rshift_func_int32_t_s_u(((*l_149) = (safe_add_func_uint16_t_u_u((0xB420D7A7L <= (((safe_unary_minus_func_int16_t_s(8L)) > (g_146[1][0][0] , g_146[1][0][0])) >= p_96)), 0xDF88L))), g_152)) >= 4UL) && 0x8D429411D375A9F4LL), 0x03L)))), 3)) , g_146[5][0][0]) , g_152))))) , (-3L));
    }
    for (g_137 = 0; (g_137 <= 1); g_137 += 1)
    { /* block id: 53 */
        int i;
        return l_150[g_137];
    }
    return g_17[0];
}


/* ------------------------------------------ */
/* 
 * reads : g_61 g_115 g_120 g_67
 * writes: g_61 g_115 g_118 g_120 g_67
 */
static uint32_t  func_103(uint32_t  p_104, int8_t  p_105)
{ /* block id: 8 */
    uint32_t l_109 = 4294967295UL;
    int32_t *l_116 = &g_67;
    for (g_61 = 0; (g_61 == 14); g_61 = safe_add_func_uint8_t_u_u(g_61, 7))
    { /* block id: 11 */
        int32_t *l_108[7][3] = {{&g_67,&g_67,&g_67},{&g_67,&g_67,&g_67},{&g_67,&g_67,&g_67},{&g_67,&g_67,&g_67},{&g_67,&g_67,&g_67},{&g_67,&g_67,&g_67},{&g_67,&g_67,&g_67}};
        uint64_t *l_114 = &g_115;
        int32_t **l_117[10] = {&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1],&l_108[3][1]};
        const uint64_t *l_141 = (void*)0;
        int i, j;
        --l_109;
        (*l_116) ^= ((g_120[3][2][4] |= (safe_mod_func_uint64_t_u_u((((0x059E6156CF859E22LL || ((*l_114) &= 0xEAAF2C41E7D42A80LL)) , l_116) == (g_118 = (void*)0)), (~0x792F697C72F71451LL)))) , p_104);
        for (l_109 = 0; (l_109 < 47); ++l_109)
        { /* block id: 19 */
            uint32_t l_123[10][7] = {{0xE81B9928L,0xE81B9928L,0x343453D9L,0xE81B9928L,0xE81B9928L,0x343453D9L,0xE81B9928L},{0x90B46495L,18446744073709551613UL,0x423037FFL,0xE736DE7CL,0x423037FFL,18446744073709551613UL,0x90B46495L},{0xBDC2D20EL,0xE81B9928L,0xBDC2D20EL,0xBDC2D20EL,0xE81B9928L,0xBDC2D20EL,0xBDC2D20EL},{0x90B46495L,0xE736DE7CL,0x0CC08C92L,0xE736DE7CL,0x90B46495L,1UL,0x90B46495L},{0xE81B9928L,0x343453D9L,0x343453D9L,0xBDC2D20EL,0x343453D9L,0x343453D9L,0xBDC2D20EL},{0x0CC08C92L,18446744073709551613UL,0x0CC08C92L,1UL,0x423037FFL,1UL,0x0CC08C92L},{0xBDC2D20EL,0xBDC2D20EL,0xE81B9928L,0xBDC2D20EL,0xBDC2D20EL,0xE81B9928L,0xBDC2D20EL},{0x423037FFL,1UL,0x0CC08C92L,18446744073709551613UL,0x0CC08C92L,1UL,0x423037FFL},{0x343453D9L,0xBDC2D20EL,0x343453D9L,0x343453D9L,0xBDC2D20EL,0x343453D9L,0x343453D9L},{0x423037FFL,18446744073709551613UL,0x90B46495L,18446744073709551613UL,0x423037FFL,0xE736DE7CL,0x423037FFL}};
            int8_t *l_135 = (void*)0;
            int8_t *l_136 = &g_137;
            uint64_t **l_140 = &l_114;
            int32_t l_142 = 0L;
            int32_t l_143 = 8L;
            int i, j;
            l_123[7][2]--;
        }
    }
    return g_120[3][2][4];
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    for (i = 0; i < 1; i++)
    {
        transparent_crc(g_17[i], "g_17[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_61, "g_61", print_hash_value);
    transparent_crc(g_67, "g_67", print_hash_value);
    transparent_crc(g_115, "g_115", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 8; j++)
        {
            for (k = 0; k < 6; k++)
            {
                transparent_crc(g_120[i][j][k], "g_120[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_137, "g_137", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 4; j++)
        {
            for (k = 0; k < 1; k++)
            {
                transparent_crc(g_146[i][j][k], "g_146[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_152, "g_152", print_hash_value);
    transparent_crc(g_173, "g_173", print_hash_value);
    transparent_crc(g_175, "g_175", print_hash_value);
    transparent_crc(g_176, "g_176", print_hash_value);
    transparent_crc(g_177, "g_177", print_hash_value);
    transparent_crc(g_204, "g_204", print_hash_value);
    transparent_crc(g_207, "g_207", print_hash_value);
    transparent_crc(g_209, "g_209", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_260[i], "g_260[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_353[i], "g_353[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_452[i], "g_452[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_454, "g_454", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 5; j++)
        {
            for (k = 0; k < 1; k++)
            {
                transparent_crc(g_509[i][j][k], "g_509[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_534, "g_534", print_hash_value);
    transparent_crc(g_538, "g_538", print_hash_value);
    transparent_crc(g_542, "g_542", print_hash_value);
    transparent_crc(g_545, "g_545", print_hash_value);
    transparent_crc(g_664, "g_664", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_741[i], "g_741[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_841, "g_841", print_hash_value);
    transparent_crc(g_969, "g_969", print_hash_value);
    for (i = 0; i < 10; i++)
    {
        transparent_crc(g_987[i], "g_987[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 211
XXX total union variables: 0

XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0

XXX max expression depth: 49
breakdown:
   depth: 1, occurrence: 171
   depth: 2, occurrence: 43
   depth: 3, occurrence: 4
   depth: 4, occurrence: 2
   depth: 5, occurrence: 1
   depth: 9, occurrence: 1
   depth: 13, occurrence: 1
   depth: 16, occurrence: 1
   depth: 18, occurrence: 1
   depth: 19, occurrence: 3
   depth: 21, occurrence: 3
   depth: 22, occurrence: 3
   depth: 23, occurrence: 2
   depth: 24, occurrence: 4
   depth: 25, occurrence: 1
   depth: 26, occurrence: 2
   depth: 27, occurrence: 1
   depth: 28, occurrence: 5
   depth: 29, occurrence: 1
   depth: 30, occurrence: 1
   depth: 33, occurrence: 1
   depth: 36, occurrence: 1
   depth: 37, occurrence: 1
   depth: 38, occurrence: 1
   depth: 40, occurrence: 1
   depth: 49, occurrence: 1

XXX total number of pointers: 198

XXX times a variable address is taken: 464
XXX times a pointer is dereferenced on RHS: 79
breakdown:
   depth: 1, occurrence: 74
   depth: 2, occurrence: 5
XXX times a pointer is dereferenced on LHS: 112
breakdown:
   depth: 1, occurrence: 109
   depth: 2, occurrence: 1
   depth: 3, occurrence: 0
   depth: 4, occurrence: 2
XXX times a pointer is compared with null: 14
XXX times a pointer is compared with address of another variable: 0
XXX times a pointer is compared with another pointer: 6
XXX times a pointer is qualified to be dereferenced: 1670

XXX max dereference level: 5
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 523
   level: 2, occurrence: 45
   level: 3, occurrence: 47
   level: 4, occurrence: 61
   level: 5, occurrence: 5
XXX number of pointers point to pointers: 88
XXX number of pointers point to scalars: 110
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 32.8
XXX average alias set size: 1.38

XXX times a non-volatile is read: 719
XXX times a non-volatile is write: 362
XXX times a volatile is read: 19
XXX    times read thru a pointer: 0
XXX times a volatile is write: 6
XXX    times written thru a pointer: 0
XXX times a volatile is available for access: 727
XXX percentage of non-volatile access: 97.7

XXX forward jumps: 0
XXX backward jumps: 2

XXX stmts: 173
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 31
   depth: 1, occurrence: 18
   depth: 2, occurrence: 22
   depth: 3, occurrence: 26
   depth: 4, occurrence: 37
   depth: 5, occurrence: 39

XXX percentage a fresh-made variable is used: 16.9
XXX percentage an existing variable is used: 83.1
********************* end of statistics **********************/

/* Found checksum difference between compiler implementations */
/* gcc -O0 : 5993634A */
/* gcc -O1 : 5993634A */
/* gcc -O2 : 5993634A */
/* gcc -Os : AF39B8DE */
/* gcc -O3 : 5993634A */
/* clang -O0 : 5993634A */
/* clang -O1 : 5993634A */
/* clang -O2 : 5993634A */
/* clang -Os : 5993634A */
/* clang -O3 : 5993634A */
/* please refer to http://embed.cs.utah.edu/csmith/using.html on how to report a bug */
